On Wed, May 21, 2008 at 4:20 PM, Remy Guo <[EMAIL PROTECTED]> wrote: > it's really interesting... then how can i match that ^M using regex? > i've tried "chomp" when reading each line but it doesn't work...
That's "\r" everywhere except in Macs before Mac OS X. Some programs display "\r" as "^M" but that's just a way to show it, there's really just one character. I you'd like to order the ideas about how newlines work have a look at this article: http://www.onlamp.com/pub/a/onlamp/2006/08/17/understanding-newlines.html -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/