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

Re: OO Perl and AUTOLOAD

by tilly (Archbishop)
on Apr 08, 2005 at 18:43 UTC ( #446105=note: print w/ replies, xml ) Need Help??


in reply to OO Perl and AUTOLOAD

I would not use an AUTOLOAD for this. I would follow the strategy of typeglobbing closures that I give at Re: More then one AUTOLOAD in a class hierarchy.. For one discussion of how AUTOLOAD and OO don't always play ball together see Why breaking can() is acceptable. The hope that I had of making them play that I discuss there didn't work out, see Detecting function vs method in an AUTOLOAD? for why not. (Without solving that problem I'm not going to release a module on CPAN that creates a UNIVERSAL::AUTOLOAD! But hey, I just realized that I could install the AUTOLOAD elsewhere...hmmm...)

UPDATE: That realization is now Class::AutoloadCAN.


Comment on Re: OO Perl and AUTOLOAD

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-06 01:09 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 (68 votes), past polls