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 reply to Re: Run if weekend
by QuillMeantTen
in thread Run if weekend
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |