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

Re^2: lazily getting around an Exporter problem

by meraxes (Friar)
on Oct 04, 2007 at 22:00 UTC ( #642778=note: print w/replies, xml ) Need Help??

in reply to Re: lazily getting around an Exporter problem
in thread lazily getting around an Exporter problem

Thankee, but I don't think these are the approaches for me.

The first, manually changing the module means I can't update it from CPAN anymore without having to reapply my changes. As the App I'm working on is deployed on multiple boxes, this isn't a solution that would we welcomed into the deployment process. It would also break any other modules that depend on it. I suppose I could RENAME the module to something else and do as you say to avoid the dependency problem, but I'd still be stuck manually caring for the module should it be patched.

The second is problematic as well. I need the function I'm doing to be in the same namespace as it's an OO module and needs access to $self. I could manually pass $self into the function, but it wouldn't be a particularly good way out of this problem.

Many thanks for the suggestions though.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-12-18 09:25 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (475 votes). Check out past polls.