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

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);

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

Replies are listed 'Best First'.
Re^3: Bareword "SCALAR" not allowed while "strict subs" in use at C:/Perl/site/lib/DateTime/Locale.pm line 41.
by Anonymous Monk on Aug 18, 2010 at 00:09 UTC
    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?