snafu has asked for the wisdom of the Perl Monks concerning the following question:
perl -e '$var="11/22";$x,$y = split("/",$var,);print "x is $x and y is + $y\n";' x is and y is 2 perl -e '$var="11/22";$x,$y = split(/\//,$var,);print "x is $x and y i +s $y\n";' x is and y is 2
What am I doing wrong here?
----------
- Jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: split() not working the way I would expect...
by jeffa (Bishop) on Aug 25, 2001 at 00:21 UTC | |
|
Re: split() not working the way I would expect...
by blakem (Monsignor) on Aug 25, 2001 at 00:22 UTC | |
|
Re: split() not working the way I would expect...
by Anonymous Monk on Aug 25, 2001 at 12:03 UTC |