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

Re: Replace a string after a word

by kcott (Bishop)
on Jan 06, 2014 at 15:04 UTC ( #1069534=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    tie my @records, 'Tie::File', 'pm_1069470.txt';
    s/user={hhhfj}jshdfjhdfjh\\=/user=newvalue/ for @records;
    untie @records;
    
  2. or download this
    $ cat pm_1069470.txt
    blah blah blah
    ...
    user=something else
    user=newvalue
    other data
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-04-14 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?