go ahead... be a heretic | |
PerlMonks |
Re^4: Removing the carriage return in a Find & Replace?by mscharrer (Hermit) |
on Sep 26, 2008 at 13:51 UTC ( [id://713877]=note: print w/replies, xml ) | Need Help?? |
The -p option you use splits the input in separate lines. For Perl \n isn't the same as a space even if it is for HTML.
One solution is to undef $/ in order to enable ''slurp mode'', (or to use the before mentioned command line option -0):
In Section
Seekers of Perl Wisdom
|
|