Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: map split vs array splitby FunkyMonk (Chancellor) |
on Jul 30, 2007 at 23:03 UTC ( [id://629687]=note: print w/replies, xml ) | Need Help?? |
I don't understand any of your questions, but I'll try and answer what it is I think you're asking. I beg your forgiveness if I'm wrong.
Four things are happening here...
Why is this evaluating split of array to scalar?
See my reply below for the real answer to this. print "@lines1" is treated magically: each element of @lines1 is printed, separated by a space. update: ysth pointed out that what I'd written was wrong. Sorry about that.
In Section
Seekers of Perl Wisdom
|
|