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

You should show us how you are using DateTime::Locale. Give us some context:
use DateTime::Locale; # my code goes here

Are you using a recent version of DateTime::Locale? Perhaps your version is old and buggy.

As an aside, use code tags for your code. See Writeup Formatting Tips.

  • Comment on Re: Bareword "SCALAR" not allowed while "strict subs" in use at C:/Perl/site/lib/DateTime/Locale.pm line 41.
  • 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:49 UTC
    Given below is the code line from Locale.pm file
    ----------------------------------------------
    package DateTime::Locale;
    use strict;
    use warnings;
    use 5.006;
    # Loading this here isn't necessary, but it makes it easier to catch
    # syntax errors when testing.
    use DateTime::Locale::Base;
    use DateTime::Locale::Catalog;
    use Params::Validate qw( validate validate_pos SCALAR );
    ----------------------------------------------------
    And given below is the codeline from my application

    use strict;
    use Win32::OLE;
    #use Win32::OLE::Variant;
    use Win32::OLE::CrystalRuntime::Application;
    # Produce a OLE Variant "FALSE" to pass to the Export method...
    my $false = Variant(VT_BOOL,0);

      Given below is the code line from Locale.pm file

      That isn't the code asked for. Which version of DateTime::Locale do you have and what is your code?