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

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

by toolic (Bishop)
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];

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996960]
[stevieb]: I have got ready everything in a stable manner to go forward with a full-blown "Raspberry Pi with Perl" series, and at the same time "Automated testing locally for everything" series. A year it took. A year I've been waiting to do this.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-06-29 01:38 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (653 votes). Check out past polls.