Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: AutoLoader destroy issue (inheritance--)

by tye (Sage)
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/ 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        

Replies are listed 'Best First'.
Re^2: AutoLoader destroy issue (inheritance--)
by MidLifeXis (Monsignor) 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.


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/ and remove that line from your copy

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986100]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-05-26 12:55 GMT
Find Nodes?
    Voting Booth?