in reply to problem or bug?

You're trying to evaluate $month as a string. Try

if ($month == 7) { $monthStamp = "July"; print "$monthStamp"; }

This should work regardless of whether $month contains a number 7 or a string "07".

Guy