Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Exporter in an OO module?

by afoken (Chancellor)
on Jan 05, 2017 at 05:14 UTC ( [id://1178981]=note: print w/replies, xml ) Need Help??


in reply to Re: Exporter in an OO module?
in thread Exporter in an OO module?

that's a rather archaic usage of Exporter

How should anyone know better? The documentation of Exporter has not been changed much (diff) in the last six years, all of the problems I wrote about six years ago still exist, starting with the archaic example using require and @ISA = qw(Exporter). Almost all examples still inherit from Exporter, and only half way down through the documentation a single example shows that you don't have to inherit from Exporter. Inheriting from Exporter is still shown as "good practice". Even worse, the documentation shows how to use base or parent to inherit from Exporter. And don't make me think about the recommended Exporter::Easy, hiding the unneeded inheritance in yet another module.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found