in reply to Getting Today's Date - Strange Problem

According to the documentation,
Time::localtime overrides the core localtime() function, replacing it with a version that returns "Time::tm" objects.

Your "use" statement caused localtime() to return OBJECTS, instead of an array, which caused the errors you posted.

The previous monks answer is right on - you don't need the "use" statement.

  • Comment on Re: Getting Today's Date - Strange Problem