develooper Front page | perl.perl5.porters | Postings from June 2008

[perl #19388] behaviour changed in Perl 5.10

From:
renee.baecker
Date:
June 7, 2008 09:11
Subject:
[perl #19388] behaviour changed in Perl 5.10
Message ID:
20080607161052.6170199C082@rserv16.sitepush.net
The behaviour changed in Perl 5.10:

reneeb@reneeb-desktop:~$ /opt/perl510/bin/perl -wle '$_ = "bk"; print
"_=$_" while s/((.))k$2//;print "|$1|"'
Use of uninitialized value $2 in regexp compilation at -e line 1.
_=
Use of uninitialized value $1 in concatenation (.) or string at -e line
1.
||
reneeb@reneeb-desktop:~$ /opt/perl510/bin/perl -wle '$_ = "bk"; print
"_=$_,1=$1" while s/((.))k$2//;print "|$1|"'
Use of uninitialized value $2 in regexp compilation at -e line 1.
_=,1=b
Use of uninitialized value $1 in concatenation (.) or string at -e line
1.
||
reneeb@reneeb-desktop:~$

Cheers,
Renee






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