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.)