Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to write a Mixin without Exporter mess?

by afoken (Prior)
on Jul 07, 2009 at 07:33 UTC ( #777767=note: print w/ replies, xml ) Need Help??


in reply to How to write a Mixin without Exporter mess?

Just a note: In recent perl versions (5.8.3 and newer), you don't have to inherit from Exporter any more. Instead, you can import Exporter's import method into your code (use Exporter qw(import);). This way, you don't have all those Exporter methods in your object / mixin.

Could mixin help you?

Alexander

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


Comment on Re: How to write a Mixin without Exporter mess?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-05 02:51 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 (60 votes), past polls