411 REFERENCE · Wikibooks
Perl Programming/Keywords/truncate
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl tr uc Keywords
The truncate keyword
truncate shortens the contents of the file that is opened on FILEHANDLE, or that is named by EXPRESSION, to the specified LENGTH. Raises an exception if truncate isn't implemented on your system and returns true if successful, undef on error.
Syntax
truncate FILEHANDLE, LENGTH
truncate EXPRESSION, LENGTH
Perl tr uc Keywords