in reply to Re: My module's methods aren't working under Mason pages?
in thread My module's methods aren't working under Mason pages?

Dump the @INC from your Mason code and go thru all paths to see if there is somewhere another CMS/Users.pm

Or dump %INC instead :)

  • Comment on Re^2: My module's methods aren't working under Mason pages?

Replies are listed 'Best First'.
Re^3: My module's methods aren't working under Mason pages?
by duyet (Friar) on Aug 10, 2011 at 08:25 UTC

    @INC and %INC are 2 different things :)

    print Dumper( \@INC ); $VAR1 = [ '/usr/lib/perl5/5.10/i686-cygwin', '/usr/lib/perl5/5.10', '/usr/lib/perl5/site_perl/5.10/i686-cygwin', '/usr/lib/perl5/site_perl/5.10', '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin', '/usr/lib/perl5/vendor_perl/5.10', '/usr/lib/perl5/vendor_perl/5.10', '/usr/lib/perl5/site_perl/5.8', '/usr/lib/perl5/vendor_perl/5.8', '.' ]; print Dumper( \%INC );' $VAR1 = { 'warnings/register.pm' => '/usr/lib/perl5/5.10/warnings/regi +ster.pm', 'bytes.pm' => '/usr/lib/perl5/5.10/bytes.pm', 'XSLoader.pm' => '/usr/lib/perl5/5.10/i686-cygwin/XSLoader.p +m', 'Carp.pm' => '/usr/lib/perl5/5.10/Carp.pm', 'Exporter.pm' => '/usr/lib/perl5/5.10/Exporter.pm', 'warnings.pm' => '/usr/lib/perl5/5.10/warnings.pm', 'overload.pm' => '/usr/lib/perl5/5.10/overload.pm', 'Data/Dumper.pm' => '/usr/lib/perl5/5.10/i686-cygwin/Data/Du +mper.pm' };

    If you need to check your paths @INC is a better option :)

      If you need to check your paths @INC is a better option :)

      Clearly the opposite is true