Programming Perl

Programming PerlSearch this book
Previous: 3.2.175 tr///Chapter 3
Functions
Next: 3.2.177 uc
 

3.2.176 truncate

truncate FILEHANDLE, LENGTH
truncate EXPR, LENGTH

This function truncates the file opened on FILEHANDLE, or named by EXPR, to the specified length. The function produces a fatal error if truncate(2) or an equivalent isn't implemented on your system. (You can always truncate a file by copying the front of it, if you have the disk space.)


Previous: 3.2.175 tr///Programming PerlNext: 3.2.177 uc
3.2.175 tr///Book Index3.2.177 uc