in reply to Fetching Only Month and Year From localtime()

I think you'll probably want something like:

my ($month, $year) = (localtime())[4,5];
You may want to fix the offsets afterwards of course.

/J\