in reply to Redefining Exported Subroutines (esp. in mod_perl/mason)
UPDATE
Oops, I misread the question. Your problem is not what
you think it is. It is an order of action issue. Here is the order of actions with the section commented out:
The answer is that you can't. But if you move the use to the *end* of the script you will get the module version. If you manually call import in your script you will likewise be able to get the module version. However you cannot prevent the code using the module from being able to overwrite what you exported. Which is really how it should be. Module authors should not be deliberately equipped with weapons to allow their bad assumptions to accidentally cause hard-to-fix grief for users of their code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: Redefining Exported Subroutines (esp. in mod_perl/mason)
by blakem (Monsignor) on Jun 19, 2001 at 03:14 UTC |