Nevermind...got it.
On Thu, 25 Nov 2004 09:30:39 -0500, FlashMX wrote: >On Thu, 25 Nov 2004 15:16:32 +0100, Gunnar Hjalmarsson wrote: > >>FlashMX wrote: >>> How can I enter in a carriage return when doing a text substitution? >> >>Suppose you mean a newline... > >Yes. > >>The right side of the s/// operator works as a double-quoted string. >>Accordingly, you can do it just like you would have added a newline to a >>double-quoted string. >> > >s/ MATCH / MATCH NEW /; > >Which should output: > >MATCH NEW. > >The "//" don't work. I'm sure my syntax is wrong. > >s/ MATCH / MATCH ///NEW /; > >Output I require: > >MATCH >NEW > > > >>Gunnar Hjalmarsson >>Email: http://www.gunnar.cc/cgi-bin/contact.pl >> >>-- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >><http://learn.perl.org/> <http://learn.perl.org/first-response> >> >> > > > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] ><http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>