Syntactic Confectionery Delight | |
PerlMonks |
Re: Is this expected behavior for chomp/split...?!by johngg (Canon) |
on May 20, 2009 at 09:36 UTC ( [id://765159]=note: print w/replies, xml ) | Need Help?? |
Because without a third argument split will discard empty trailing fields which, as soon as you chomp away the newline, you have four of. I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|