in reply to Last day of the month. Any shorter
Haven't tested this, but this one-liner should work for Win32 systems:perl -MTime::Piece -le'$t=localtime->strptime(shift,"%Y%m%d");print "l +ast day" if $t->mday == $t->month_last_day' 20010731
perl -MTime::Piece -le"$t=localtime->strptime(shift,'%Y%m%d');print 'l +ast day' if $t->mday == $t->month_last_day" 20010731
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|