in reply to Finding the Day of Week in Windows
I can think of twothree quick ways:
my $today = localtime; my ($day) = $today =~ m/^(\w{3})/; [download]
use POSIX qw(strftime); my $dow = strftime "%a", localtime; [download]
Update: Added third method.