Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 lurking in the Monastery: (8)
As of 2014-12-25 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (162 votes), past polls