Perl: the Markov chain saw | |
PerlMonks |
split(/:/, $t) splits also on white spaceby Nagarjuna (Initiate) |
on Sep 25, 2014 at 10:14 UTC ( [id://1101942]=perlquestion: print w/replies, xml ) | Need Help?? |
Nagarjuna has asked for the wisdom of the Perl Monks concerning the following question:
The following perl code should print @a =split(/:/, $t); print $t. "\n"; foreach $b (<@a>) { print $b ."\n";}
I have used split before and never noticed such behavior.
Back to
Seekers of Perl Wisdom
|
|