There's more than one way to do things | |
PerlMonks |
Re: (Fixed) Re: unGodly problems with pop()by dragonchild (Archbishop) |
on Jul 13, 2001 at 16:23 UTC ( [id://96362]=note: print w/replies, xml ) | Need Help?? |
This is a bit of a quibble, but don't use chop to get rid of newlines like \r and \n. Use chomp instead. It'll only get rid of newlines at the end, not the last character. So, you can safely chomp anything without verifying that it indeed does have newlines at the end.
In Section
Seekers of Perl Wisdom
|
|