in reply to Date Calculation
use POSIX 'strftime'; my $day = strftime("%j", localtime(time())); [download]