in reply to use deprecated;
I see one problem with it: you need to change the source of each of the OldeCruft modules. Or install a code reference in @INC that does its magic as a source filter on all modules loaded.
A solution in which you would just add -Mdeprecated to the command line, would be nicer, I think.
One way to do this, would be to put all the knowledge about OldeCruft modules in the "deprecated" module and have that check at INIT {} or CHECK {} time. A concept:
This however has the disadvantage that this won't work under mod_perl (as INIT and CHECK dont't work with mod_perl).package deprecated; INIT { die "Cannot use OldeCruft\n" if defined $OldeCruft::VERSION; # possibly install wrappers also here }
Hope this helps.
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use deprecated;
by halley (Prior) on Nov 26, 2003 at 15:16 UTC |