Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to replace strings in a file from a list?

by toolic (Chancellor)
on Oct 03, 2012 at 02:21 UTC ( #996960=note: print w/ replies, xml ) Need Help??


in reply to How to replace strings in a file from a list?

Do I need to create a hash with the 6 names above before I can replace instances of JOE, FRED, and SAM, in a text file?
Yes, that is one way to do it. Give it a try.

Also note that you can simplifiy your code a little by eliminating qq around your variables:

my $userlist = $ARGV[0];


Comment on Re: How to replace strings in a file from a list?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-08-31 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls