Hi,
How can I enter in a carriage return when doing a text substitution?
while ( <INPUT> ) {
if (/FIND_MATCH/) {
s/AAA/BBB CCC/;
}
Input file
=======
111 222 333 AAA
444 555 666 7777
Output file
========
111 222 333 BBB CCC
444 555 666 7777
Is it possible to have the output like so (with a carriage return)?
Output file
========
111 222 333 BBB
CCC
444 555 666 7777
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>