Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Replacing Lines in a File

by Stevie-O (Friar)
on May 26, 2004 at 19:52 UTC ( [id://356711]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    tie @array, 'Tie::File', '/data/syslog/log.backup' or die "Damnit, Jim
    +, he's dead: $!";
    s/$ip/$txt/ for @array;
    
  2. or download this
    $"=$,,$_=q>|\p4<6 8p<M/_|<('=>
    .q>.<4-KI<l|2$<6%s!<qn#F<>;$,
    .=pack'N*',"@{[unpack'C*',$_]
    }"for split/</;$_=$,,y[A-Z a-z]
             {}cd;print lc
    

Log In?
Username:
Password:

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

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

    No recent polls found