Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: AUTOLOAD inheritance

by optimist (Beadle)
on Feb 14, 2004 at 01:45 UTC ( #328915=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: AUTOLOAD inheritance
in thread AUTOLOAD inheritance

Well, it might be helpful to tell the poster how to eliminate the warning.... Since the module in question is a Exporter and DynaLoader, and only the latter has an autoload method, adding the following to the module should work (untested in this form, slightly modified from working code in a different context):

sub AUTOLOAD { my $name = our $AUTOLOAD; $name =~ s/.*:://; # lose package name my $target = "DynaLoader::$name"; goto &$target; }
This will get called in Abigail-II's step 4, preventing the warning from step 5.


Comment on Re: Re: Re: AUTOLOAD inheritance
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://328915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-06 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls