in reply to Why does my Perl regex substitution for linebreak fail?
Could your file actually have \r\n (windows-based) line-endings? Could get different terminal behavior if running cygwin with unix line-endings?
If you have a unix-like system available, might try pushing a small bit of your processed and unprocessed file through "od". I sometimes use something like "tail -3 foo | od -bc" to keep from getting fooled by "friendly" systems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why does my Perl regex substitution for linebreak fail?
by quester (Vicar) on Mar 06, 2008 at 07:34 UTC | |
|
Re^2: Why does my Perl regex substitution for linebreak fail?
by pat_mc (Pilgrim) on Mar 06, 2008 at 08:58 UTC | |
by igelkott (Priest) on Mar 06, 2008 at 18:10 UTC | |
by pat_mc (Pilgrim) on Mar 06, 2008 at 20:35 UTC | |
|
Re^2: Why does my Perl regex substitution for linebreak fail?
by pat_mc (Pilgrim) on Mar 06, 2008 at 15:48 UTC | |
by igelkott (Priest) on Mar 06, 2008 at 18:37 UTC | |
by pat_mc (Pilgrim) on Mar 06, 2008 at 20:33 UTC | |
by igelkott (Priest) on Mar 06, 2008 at 21:21 UTC |