in reply to Super Duper Inefficient

You can format a date easyer way using function strftime from POSIX:
use POSIX 'str2time'; my $time = strftime '%m/%d/%Y %H:%M', localtime($time);
      
--------------------------------
SV* sv_bless(SV* sv, HV* stash);

Replies are listed 'Best First'.
Re: Re: Super Duper Inefficient
by Earindil (Beadle) on Jun 20, 2003 at 14:02 UTC
    That's great. Thanks. I was already using POSIX earlier in the script for mktime to get my time in seconds but didn't know about strftime. Looks much better and cuts out several lines. Thanks to everyone else to. I'm trying out each of your suggestions.