in reply to
Using truncate
That's very much not what
truncate
does. You want
substr
:
$foo = substr time(), 0, 6;
[download]
truncate
(read the docs) truncates a *file*, not a string.
Comment on
Re: Using truncate
Download
Code
In Section
Seekers of Perl Wisdom