Here are two scripts, the only difference is the marker I am splitting by. I really expect the output from the two scripts to be the same. Why is the output different?
perl -e '@NEW = split(".", "1.2.3"); print "x", $NEW[1], "x\n"; '
Outputs xx
perl -e '@NEW = split("_", "1_2_3"); print "x", $NEW[1], "x\n"; '
Outputs x2x
Can't I use a period to mark fields in perl?
Thanx!
-Michael
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
