Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Re: Removing the ^M character, but also removing the newlineby steves (Curate) |
on Dec 30, 2001 at 03:01 UTC ( [id://135166]=note: print w/replies, xml ) | Need Help?? |
Tell chomp what your newline is like this:
Chomp chomps whatever you tell it a newline is. local localizes that setting so it's automagically replaced with the standard newline for your system when the block the local setting is within is done. Name another language that makes stripping newlines this easy. 8-)
In Section
Seekers of Perl Wisdom
|
|