Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: How to write a Mixin without Exporter mess? (conflict)

by saintmike (Vicar)
on Jul 07, 2009 at 19:30 UTC ( #777982=note: print w/ replies, xml ) Need Help??


in reply to Re: How to write a Mixin without Exporter mess? (conflict)
in thread How to write a Mixin without Exporter mess?

Paraphrasing the next paragraph: And you'd like to make object syntax not work for "everyone else".

Actually, no! :) Sorry to lure onto the wrong path with nebulous "various reasons", I've got nothing to hide! Reasons are: I want to use object syntax, not exploiting Perl's way of passing the object ref as the first argument.

Secondly, in fact, I would like other people's $self->frobnerize() calls to be routed to my Mixin, and I want them to use object syntax as well.

Hopefully, this has cleared up what I want ... and it looks like the trickery in mixin does exactly the, um, trick. Thanks to afoken who suggested this!


Comment on Re^2: How to write a Mixin without Exporter mess? (conflict)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2015-07-30 17:20 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 (273 votes), past polls