develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000301.003] Object name stringification / matching problem

Thread Next
March 1, 2000 03:06
[ID 20000301.003] Object name stringification / matching problem
Message ID:

This is a bug report for perl from,
generated with the help of perlbug 1.27 running under perl v5.5.670.

[Please enter your report here]

The name of an object seems to fail to match if the pattern starts
with caret. The following program prints Yes1! and Yes3!, but not

  my $obj = bless ({}, 'Foo::Bar');
  print STDERR ("Yes1!\n") if $obj =~ /Foo::/;
  print STDERR ("Yes2!\n") if $obj =~ /^Foo::/;
  print STDERR ("Yes3!\n") if "$obj" =~ /^Foo::/;

This problem also exists in 5.5.660, but not in 5.005_03.

[Please do not change anything below this line]

Site configuration information for perl v5.5.670:

Configured by jv at Wed Mar  1 11:23:49 CET 2000.

Summary of my perl5 (revision 5.0 version 5 subversion 670) configuration:
    osname=linux, osvers=2.2.14, archname=i386-linux
    uname='linux 2.2.14 #2 sun jan 30 18:21:05 cet 2000 i686 unknown '
    config_args='-des -Darchname=i386-linux -Dd_dosuid -Dprefix=/opt/perl-5.5.670'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
    cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccflags ='-fno-strict-aliasing -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.5.670:

Environment for perl v5.5.670:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About