in reply to Using truncate
truncate is a file thing, you can use substr to limit the length of a scalar.
$string = substr($string,0,6);
ofcourse there are many ways to handle time/date stuff, besides cutting of the number of seconds since the Epoch (which is what time returns).
You'll probably find localtime much handier.
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.