develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #24237] @& doesn't set PL_sawampersand

Thread Next
From:
Steve Grazzini
Date:
October 18, 2003 15:30
Subject:
[perl #24237] @& doesn't set PL_sawampersand
Message ID:
rt-24237-66158.17.4272655786895@rt.perl.org
# New Ticket Created by  Steve Grazzini 
# Please include the string:  [perl #24237]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24237 >


This is a bug report for perl from grazz@pobox.com
generated with the help of perlbug 1.34 running under perl v5.8.0.

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

If you use (for example) @& before using $&, then $& loses
its magic.

    % perl -le '"foo" =~ /.*/; print "[$&]"'
    [foo]

    % perl -le '@&; "foo" =~ /.*/; print "[$&]"'
    []

This worked correctly in 5.6.1 -- but of course the old behavior
wasn't ideal either, since it set PL_sawampersand unnecessarily.

   http://xrl.us/xk7

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

Configured by grazz at Sun Jun 29 18:10:10 EDT 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.20, archname=i686-linux-thread-multi
    uname='linux scarlatti 2.4.20 #1 smp tue apr 15 21:16:02 local time zone must be set--see zic i686 unknown '
    config_args='-Doptimize=-g3 -Duseithreads -Dmultiplicity -Dprefix=/usr -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing'
    ccversion='', gccversion='3.2.2 (CRUX)', 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='cc', ldflags =''
    libpth=/lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    ./blib/lib
    ./blib/arch
    /usr/lib/perl5/5.8.0/i686-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/home/grazz
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=~/bin:/usr/bin:/bin:.
    PERL5LIB=./blib/lib:./blib/arch
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About