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

perlfunc:truncate

by gods
on Aug 24, 1999 at 22:42 UTC ( #260=perlfunc: print w/ replies, xml ) Need Help??

truncate

See the current Perl documentation for truncate.

Here is our local, out-dated (pre-5.6) version:


truncate - shorten a file



truncate FILEHANDLE,LENGTH

truncate EXPR,LENGTH



Truncates the file opened on FILEHANDLE, or named by EXPR, to the specified length. Produces a fatal error if truncate isn't implemented on your system. Returns TRUE if successful, the undefined value otherwise.


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-30 01:19 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 (269 votes), past polls