in reply to Does AUTOLOAD exist?

Are you sure it doesn't have an AUTOLOAD?
$ mkdir -p Test/Pkg $ echo 'package Thing; 1' > Test/Pkg/Thing.pm $ perl -w require Test::Pkg::Thing; my $func_name = "Test::Pkg::Thing::AUTOLOAD"; if( defined &$func_name ) # not what I expect { print "defined!\n"; } __END__ $
No output, just as expected.
Perl --((8:>*

Replies are listed 'Best First'.
Re^2: Does AUTOLOAD exist?
by xevian (Sexton) on Oct 12, 2005 at 15:59 UTC
    Actually it wasn't an issue with this code, it works. *sheepish grin*

    What was causing the issue was Carp.. I was using it to croak if the method didn't exist.. it seems it's not friendly with our code and was trying to execute the nonexistant AUTOLOAD method.

    Thanks :)