in reply to Run if weekend
Funny you should ask that, for a script at work I just started using Date::Calc for manipulating weekdays, if you just want that datum and nothing else you can get it using this:
Be aware that its only my kind of fishing here, keep looking for answers and explanations.my $wday = (localtime)[6]; if($wday == 0 || $wday == 6){ #do something }
|
---|
In Section
Seekers of Perl Wisdom