Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: removing lines from a file

by g0n (Priest)
on Jun 22, 2005 at 17:30 UTC ( [id://469108]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       ...if regex...
       seek(LOG,0,0) || die "Seek error: $!";
       ...process line...
       truncate(LOG,tell(LOG))
    
  2. or download this
       ...if regex...
       $pos = tell(LOG)
       seek(LOG,0,0) || die "Seek error: $!";
       ...process line...
       truncate(LOG,$pos)
    
  3. or download this
    truncate(LOG,$pos-$stringlength);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found