in reply to Re^2: Misunderstood array behavior
in thread Misunderstood array behavior

For Pete's sake...I never would have suspected that because it seemed to be stomping on memory. I've dealt with these different line endings before, but never ran into that behavior.

Thanks a ton for everyone who helped. I have to mention that this has been the most pleasant forum I've ever worked with. Thanks!

By the way, I'm using tchomp (http://cpan.uwinnipeg.ca/htdocs/Text-Chomp/Text/Chomp.pm.html) to solve the problem. Do you see any reason not to always use tchomp in place of chomp?

Replies are listed 'Best First'.
Re^4: Misunderstood array behavior
by AZed (Monk) on Sep 20, 2008 at 19:05 UTC

    If your separator isn't a standard newline at all, tchomp would fail. I posted an example using '>' recently.