Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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);

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: (10)
As of 2016-10-01 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.