Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by petral (Curate)
on Apr 11, 2002 at 18:57 UTC ( [id://158391]=note: print w/replies, xml ) Need Help??


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

     #Map is good, nice way to get all the newlines back {local $"="\n"; print "@list\n"}

  p

Replies are listed 'Best First'.
Re: Re: Re: Look ahead and join if the line begins with a +
by belg4mit (Prior) on Apr 11, 2002 at 19:11 UTC
    Cool, but does the interpolation cost much (for a large list)?

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

      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://158391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found