Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Search & Replace in an Array

by AnomalousMonk (Archbishop)
on Jan 27, 2010 at 17:35 UTC ( [id://819982]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Search & Replace in an Array
in thread Search & Replace in an Array

Or better (and more idiomatically) yet:
    s{MATCH}{REPLACEMENT}xmsg for @array;

(Note that the //g regex modifier may or may not be what you need.)

Update: Removed comments anent unavailability of documentation server.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found