in reply to problem with variable
it's difficult to answer your question without seeing some code, but you might want to check whether you've defined the $month variable in an inner block of code, and you're trying to access the value of the variable in an outer block...
In Section
Seekers of Perl Wisdom