in reply to Re: Clean line ends
in thread Clean line ends
I'm sure that works.
But I find I sometimes get confused about how Perl inteprets \n (sometimes it's \012 and sometimes it's \015\012 - see perlport for the details). In order to minimise my confusion I find it helpful to always refer to the control characters (\cJ and \cM) or the numeric character codes (\012 and \015) when I'm converting newline characters.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Clean line ends
by smithers (Friar) on Jan 19, 2007 at 19:04 UTC | |
by davorg (Chancellor) on Jan 19, 2007 at 20:35 UTC | |
by smithers (Friar) on Jan 20, 2007 at 15:58 UTC |