Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: search and replace with a temp file at a certain substr position

by ikegami (Patriarch)
on Jul 20, 2005 at 19:34 UTC ( [id://476598]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $gpg = '/home/gpghrp/.gnupg';
    
    ...
    
    rename($temp, $file)
       or die "Can't update $file: $!\n";
    
  2. or download this
    perl -i -pe '/\Q(?)readonly tlx=\E/ && substr($_,13,8,"blah");' /home/
    +gpghrp/.gnupg/scripts/gpg_encr.saved
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found