Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Array Element Substitution

by cheekuperl (Monk)
on Aug 24, 2012 at 03:03 UTC ( [id://989424]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #Open the file and slurp it into an array @lines
    
    ...
    map{s/$orig_name/$new_name/g} @lines;
    
    #Write the transformed array into file again
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-23 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found