Skip to content

Instantly share code, notes, and snippets.

@msouth
Created April 19, 2013 21:53
Show Gist options
  • Save msouth/5423491 to your computer and use it in GitHub Desktop.
Save msouth/5423491 to your computer and use it in GitHub Desktop.
When will a calendar for the current year be usable again?
perl -e 'for $year (2013..2113) {$cal = qx{cal $year}; $cal =~ s/\d{4}//; if ($year eq "2013") {$comp_cal = $cal} else { die "cal $year\n" if $comp_cal eq $cal} }'
cal 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment