Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: AutoLoader destroy issue (inheritance--)

by tye (Cardinal)
on Aug 07, 2012 at 23:05 UTC ( #986100=note: print w/ replies, xml ) Need Help??


in reply to AutoLoader destroy issue

Stop over-using inheritance from classes that over-use inheritance so that you end up inheriting from AutoLoader for no good reason. (Did you also know that your MyOwnTable "isa" Exporter and your A "isa" Exporter? Did you want them to be?)

File a bug against the Data::Table module asking that the author remove the "require AutoLoader;" line from his module since AutoLoader's documentation notes:

To use AutoLoader, the author of a module has to place the definitions of subroutines to be autoloaded after an __END__ token.

and the source code for Data/Table.pm has no sub definitions after the __END__ token.

Perhaps ask that author where the "require AutoLoader;" line came from so perhaps some documentation or "help me write a module" tool could be updated to not encourage such inanity.

- tye        


Comment on Re: AutoLoader destroy issue (inheritance--)
Download Code
Re^2: AutoLoader destroy issue (inheritance--)
by Anonymous Monk on Aug 08, 2012 at 01:13 UTC
    Thank you for your response, tye, I appreciate your help. Contacting the author might be a challenging option that would most likely not yield timely results. Any other workarounds/hacks/suggestions ? Regards, Michael

      Any other workarounds/hacks/suggestions ?

      Locate Date/Table.pm and remove that line from your copy

Re^2: AutoLoader destroy issue (inheritance--)
by MidLifeXis (Prior) on Aug 09, 2012 at 09:16 UTC

    Pointed the author to this thread, 1.68 is now on its way to CPAN. Will follow up to see if the author remembers why that was in there (boilerplate?).

    Update: Author thinks it was a cut-n-paste from another module. Doesn't remember exactly where it was originally from.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-10-25 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls