Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: •Re: Re: •Re: Detecting function vs method in an AUTOLOAD?

by Corion (Pope)
on Apr 12, 2004 at 19:25 UTC ( #344490=note: print w/ replies, xml ) Need Help??


in reply to •Re: Re: •Re: Detecting function vs method in an AUTOLOAD?
in thread Detecting function vs method in an AUTOLOAD?

Even today, in Perl5, I'd write that as

$object->$meth($arg1,$arg2);

but it's clear that one or the other should be there, and not something ugly like

apply($object,$method,$arg1,$arg2);
or, assuming that can returned a bound method,
my $meth_ref = $object->can($method); apply($meth_ref,$arg1,$arg2);


Comment on Re: •Re: Re: •Re: Detecting function vs method in an AUTOLOAD?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-07-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls