|
|
| We don't bite newbies here... much | |
| PerlMonks |
Is this expected behavior for chomp/split...?!by Krambambuli (Deacon) |
| on May 20, 2009 at 09:24 UTC ( #765153=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Krambambuli has asked for the
wisdom of the Perl Monks concerning the following question:
Dear Monks,
I've just stumbled over a small issue with chomp/split (or just my understanding of them). Here's the code to test: I expected to print out the same field count - 8 - regardless of applying or not the 'chomp'. Instead, I see 8 and 4. Can someone shed some lite on it ? Why do the two field counts differ ..?!! Many thanks, Krambambuli ---
Back to
Seekers of Perl Wisdom
|
|