s/ / /; - doing harm ?
by Stanislaw Romanski other posts by this author
Jun 9 2009 12:29AM messages near this date
Re: help with dispatch array
|
Re: s/ / /; - doing harm ?
Hello,
Please, consider the following short script.
#-----------------------------------------------------
$_ = '';
s// /; ## if any of these two lines is commented out,
s/ / /; ## the printed result wil be ok, i.e. '= =' WHY ?
$_ = '';
s// /;
print "=$_=\n"; ## prints incorrect '=='
#-----------------------------------------------------
This was tested on Win'XT ActivePerl 5.8.8. and 5.8.9.
What is wrong ?
Thanks for any hints,
Stanislaw Romanski
Thread:
Stanislaw Romanski
Bill Luebkert
Stanislaw Romanski
|