Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Look ahead and join if the line begins with a +

by belg4mit (Prior)
on Apr 11, 2002 at 19:11 UTC ( [id://158394]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Look ahead and join if the line begins with a +
in thread Look ahead and join if the line begins with a +

Cool, but does the interpolation cost much (for a large list)?

--
perl -pe "s/\b;([mnst])/'\1/mg"

Replies are listed 'Best First'.
Re: Re: Re: Re: Look ahead and join if the line begins with a +
by petral (Curate) on Apr 11, 2002 at 19:18 UTC
    Good point.   {local $,="\n"; print @lines,"\n"}

      p

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158394]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found