in reply to A month behind the times...

Direct from perldoc -f localtime:

All array elements are numeric, and come straight out of a struct tm. In particular this means that $mon has the range 0..11.