Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Search and Replace

by infoninja (Friar)
on Jul 19, 2000 at 15:59 UTC ( [id://23216]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Search and Replace

You can shorten that to:
s#(\([^)]+\))#{$_=$1;s/;/,/g;$_}#eg
(not a huge difference, but I've had no coffee today...)
update:Fixed to add g modifier to end (see turnstep's post below)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://23216]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.