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
In reply to split() not working the way I would expect... by snafu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |