in reply to Re^3: Exporter::Tidy
in thread Exporter::Tidy
Maybe you could have an Exporter::Tidy::Compat as a drop in replacement to translate the Exporter interface to the Exporter::Tidy one?
The two modules have different goals, and there is no easy way to translate things automatically.
| Exporter(::Heavy) | Exporter::Tidy |
|---|---|
Exporter::Tidy can only be this small and fast if it doesn't support those features.
Should Exporter::Tidy ever become the standard exporter, Exporter could then become a stub to load Exporter::Tidy::Compat.
Should Exporter::Tidy ever be renamed to Exporter, then the current Exporter should be named Exporter::Compat, and the new Exporter would need to use AUTOLOAD to load it and goto its methods. And the same if $_[0] ne __PACKAGE__ during import().
But I think it's better to have different names for different things. What do you think, merlyn and Aristotle?
Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Exporter::Tidy
by mojotoad (Monsignor) on Mar 31, 2003 at 22:09 UTC | |
|
Re^5: Exporter::Tidy (looks like no ::Compat then)
by Aristotle (Chancellor) on Apr 01, 2003 at 14:44 UTC |