Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: removing lines that are in the end of a file

by BrowserUk (Pope)
on Apr 05, 2013 at 15:20 UTC ( #1027151=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    }
    truncate $file, $lastpos;
    close BW;
    
  2. or download this
    C:\test>type junk35.dat
    0.642375 125 SIL
    ...
    7.478125 125 ???
    7.622625 125 ??
    7.956125 125 ?
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2015-07-04 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls