Perl: the Markov chain saw | |
PerlMonks |
Re^2: Doomsday algorithmby QM (Parson) |
on Sep 07, 2015 at 14:55 UTC ( [id://1141262]=note: print w/replies, xml ) | Need Help?? |
To prove your point, when(5) duplicates "sunday".
And you probably want something like:
...though I dislike repeating $year_anchor_day. This just changes the repetition:
...so a function to do this for you would be appropriate, even if it's only used once. -QM
In Section
Cool Uses for Perl
|
|