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 reply to Re: Is this expected behavior for chomp/split...?!
by johngg
in thread Is this expected behavior for chomp/split...?!
by Krambambuli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |