Front page | perl.perl5.porters |
Postings from April 2000
[ID 20000414.003] Followup: script fails for perl versions newerthan 5.005_02
From:
Wolfgang Friebel
Date:
April 14, 2000 08:30
Subject:
[ID 20000414.003] Followup: script fails for perl versions newerthan 5.005_02
Message ID:
200004141529.RAA02629@ilos.ifh.de
This is a bug report for perl from wolfgang.friebel@desy.de,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
Hi,
the mail on the same subject yesterday did not contain a correct email address
and also not my signature. Therefore I did not receive any notification.
Further information:
In the script
# Author: F Schrempp
$test='aaa';
$test='bbb' if $test =~ /aaa/;
$var = 'abc';
$tagnam = "";
while (<DATA>) {
if (/SUBROUTINE/../END/){
print "$tagnam\n" if defined $&;
$tagnam=$&;
next if (!/$var/);
}
}
close(DATA);
__END__
SUBROUTINE HVHBVI
PHEP
END
I studied the bug a little furter: Obviously the heuristics for recognizing
.. as an iteration operator fails only, if the statements $var=..
and next if ... are inserted. Then the value of $& does not preserve its value
through the iterations and the $& from the outer scope is taken. This behaviour is in all new versions of perl I tested.
Wolfgang Friebel
Deutsches Elektronen-Synchrotron DESY | Phone: +49 33762 77372 |
Platanenallee 6 | Fax: +49 33762 77216 |
D-15738 Zeuthen Germany | E-Mail: friebel@ifh.de or |
| E-mail: Wolfgang.Friebel@desy.de |
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.0:
Configured by friebel at Tue Apr 11 17:48:23 MET DST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris-thread
uname='sunos ilos 5.6 generic_105181-16 sun4u sparc sunw,ultra-4 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-D_REENTRANT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccflags ='-D_REENTRANT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-L/usr/local/lib -R/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lposix4 -lpthread -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/products/perl/5.6.0/lib/sun4-solaris-thread
/products/perl/5.6.0/lib
/products/perl/5.6.0/lib/site_perl/sun4-solaris-thread
/products/perl/5.6.0/lib/site_perl
/products/perl/5.6.0/lib/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/jupiter/friebel
LANG=C
LANGUAGE (unset)
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/local/lib
LOGDIR (unset)
PATH=/products/perl/5.6.0/bin:/home/jupiter/friebel/bin.SunOS_5:/home/jupiter/friebel/bin.SunOS:/home/jupiter/friebel/bin:/home/jupiter/friebel/scripts:/usr/sue/bin:/usr/bin:/usr/ucb:/usr/sbin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/local/X11/bin:/usr/local/bin:/usr/local/bin/scripts::.:/cern/pro/bin
PERL_BADLANG (unset)
SHELL=/bin/zsh
-
[ID 20000414.003] Followup: script fails for perl versions newerthan 5.005_02
by Wolfgang Friebel