in reply to getting day of the week

use POSIX 'strftime'; my $day = strftime('a', localtime(time));

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: getting day of the week
by gellyfish (Monsignor) on Feb 02, 2005 at 10:27 UTC

    The added benefit of using POSIX::strftime is that it will use the appropriate daynames according to your current locale settings, which is useful if you want to internationalize your application.

    /J\