in reply to Bareword "SCALAR" not allowed while "strict subs" in use at C:/Perl/site/lib/DateTime/Locale.pm line 41.

SCALAR is a bareword. "SCALAR" is a string.

You want a string, and => only autoquotes the left hand side.


Append: Ah, never mind; that would apply if it were your own code and you didn't have a constant defined.

  • Comment on Re: Bareword "SCALAR" not allowed while "strict subs" in use at C:/Perl/site/lib/DateTime/Locale.pm line 41.
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Bareword "SCALAR" not allowed while "strict subs" in use at C:/Perl/site/lib/DateTime/Locale.pm line 41.
by nocool (Novice) on Aug 17, 2010 at 19:42 UTC
    do mean I have to update Validate.PM file ?