Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-12-06 11:14 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (102 votes). Check out past polls.