Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

perlfunc:truncate

by gods (Initiate)
on Aug 24, 1999 at 22:42 UTC ( [id://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
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2025-03-28 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (70 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.