in reply to Re^5: 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.

Thanks For the solution.. atlease I am not getting that SCALAR erro now. I am out of that error now but getting different kind of error.
Please find below those erorr :-
Subroutine DateTime::Locale::Base::id redefined at C:/Perl/site/lib/base.pm line 26.
Subroutine DateTime::Locale::Base::name redefined at C:/Perl/site/lib/base.pm li ne 26.
Subroutine DateTime::Locale::Base::native_name redefined at C:/Perl/site/lib/bas e.pm line 26.
Subroutine DateTime::Locale::Base::language redefined at C:/Perl/site/lib/base.p m line 26.
Subroutine DateTime::Locale::Base::script redefined at C:/Perl/site/lib/base.pm line 26.
Subroutine DateTime::Locale::Base::territory redefined at C:/Perl/site/lib/base. pm line 26.
Subroutine DateTime::Locale::Base::variant redefined at C:/Perl/site/lib/base.pm line 26.
Subroutine DateTime::Locale::Base::native_language redefined at C:/Perl/site/lib /base.pm line 26.
Subroutine DateTime::Locale::Base::native_script redefined at C:/Perl/site/lib/b ase.pm line 26.
Subroutine DateTime::Locale::Base::native_territory redefined at C:/Perl/site/li b/base.pm line 26.
Subroutine DateTime::Locale::Base::native_variant redefined at C:/Perl/site/lib/ base.pm line 26.
Please help.. thanks in advance
  • Comment on Re^6: 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^7: 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 21:06 UTC
    Hi Kennethk ..
    I copied the Locale.pm file at location specified you and after executing the code :
    #!/usr/bin/perl
    use strict;
    use warnings;
    use Params::Validate qw( validate validate_pos SCALAR );
    print SCALAR;

    I am getting outout as '1' ... Is that the expected output ?
    And when I run my program to conver Crystal report to PDF I got error which I send you in my previous reply.
        Hi Corion,
        Thanks for the reply.. I reinstall the module and I am out of the error message.. but getting some diff kind of error message now.

        Subroutine DateTime::Locale::Base::id redefined at C:/Perl/site/lib/base.pm line 26.
        Subroutine DateTime::Locale::Base::name redefined at C:/Perl/site/lib/base.pm li ne 26.
        Subroutine DateTime::Locale::Base::native_name redefined at C:/Perl/site/lib/bas e.pm line 26.
        Subroutine DateTime::Locale::Base::language redefined at C:/Perl/site/lib/base.p m line 26.
        Subroutine DateTime::Locale::Base::script redefined at C:/Perl/site/lib/base.pm line 26.
        Subroutine DateTime::Locale::Base::territory redefined at C:/Perl/site/lib/base. pm line 26.
        Subroutine DateTime::Locale::Base::variant redefined at C:/Perl/site/lib/base.pm line 26.
        Subroutine DateTime::Locale::Base::native_language redefined at C:/Perl/site/lib /base.pm line 26.
        Subroutine DateTime::Locale::Base::native_script redefined at C:/Perl/site/lib/b ase.pm line 26.
        Subroutine DateTime::Locale::Base::native_territory redefined at C:/Perl/site/li b/base.pm line 26.
        Subroutine DateTime::Locale::Base::native_variant redefined at C:/Perl/site/lib/ base.pm line 26.

        Can you please help me to understand why these error are popping out?