in reply to Is this expected behavior for chomp/split...?!
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this expected behavior for chomp/split...?!
by Krambambuli (Curate) on May 20, 2009 at 09:56 UTC | |
by ikegami (Patriarch) on May 20, 2009 at 16:37 UTC | |
by Krambambuli (Curate) on May 21, 2009 at 14:19 UTC | |
|
Re^2: Is this expected behavior for chomp/split...?!
by bichonfrise74 (Vicar) on May 20, 2009 at 16:06 UTC |