Ok, this is just another way to do it
use strict; use Date::Tie; tie my %d, "Date::Tie"; $d{weekday}=2; print $d{day};
also golfing-style:
perl -MDate::Tie -e 'tie %d,"Date::Tie"; $d{weekday}=2;print $d{day};'In reply to Re: how to find out the date 'Tuesday' for this week
by fglock
in thread how to find out the date 'Tuesday' for this week
by glitch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |