[perl #75734] filehandle methods interfere with internal implementation details

[email protected] (Nicholas Clark)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #75734]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75734 >



This is a bug report for perl from [email protected],
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
[Please enter your report here]

$  ~/Reference/5.8.0/bin/perl -lwe '$_ = chr 0x2020; print /\W/'
1
$  ~/Reference/5.8.0/bin/perl -lwe 'BEGIN {fileno utf8} $_ = chr 0x2020; print /\W/'
Name "main::utf8" used only once: possible typo at -e line 1.
Can't locate object method "SWASHNEW" via package "IO::Handle".


That certainly isn't *documented* behaviour from the regexp engine.

[Still present in blead]

There needs to be a way to call methods on classes that isn't subject to
"filehandles take priority". Otherwise the internals can be tricked,
accidentally or deliberately.

Nicholas Clark

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.8.0:

Configured by nwc10 at Fri Jan 13 14:56:47 GMT 2006.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=freebsd, osvers=5.4-stable, archname=i386-freebsd
    uname='freebsd colon.colondot.net 5.4-stable freebsd 5.4-stable #3: sat oct 15 10:50:35 bst 2005 [email protected]:usrobjusrsrcsyscolon i386 '
    config_args='-Dprefix=~/Reference/5.8.0 -Doptimize=-Os -Uuse64bitint -Uusethreads -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl [email protected] [email protected] -Dinc_version_list=  -Dinc_version_list_init=0 -Uinstallman1dir -Uinstallman3dir -Dmalloctype=void * -Dfreetype=void -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lc -lcrypt -lutil
    perllibs=-lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /export/home/nwc10/Reference/5.8.0/lib/perl5/5.8.0/i386-freebsd
    /export/home/nwc10/Reference/5.8.0/lib/perl5/5.8.0
    /export/home/nwc10/Reference/5.8.0/lib/perl5/site_perl/5.8.0/i386-freebsd
    /export/home/nwc10/Reference/5.8.0/lib/perl5/site_perl/5.8.0
    /export/home/nwc10/Reference/5.8.0/lib/perl5/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/export/home/nwc10
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/export/home/nwc10/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/export/home/nwc10/bin:/usr/local/sbin:/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.