John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
That looks easy enough, and should work just fine. But, recall the handling of direct module calls, as opposed to calling through the imported hard link. If you write Module::foo it will decide at run-time that it must mean foo v1.0 based on the caller.use Module v1.0 qw/foo bar/; use Module v2.0 qw/baz/; # was not present in 1.0
So, what happens if you call Module::zippo, something that was not directly imported also? Should that assume v1.0 or v2.0?
Musings:
For example, use a general syntax for renaming the import and specifying which version you want, and not re-specify a indirect version argument:
Any ideas?use Module v1.0 qw/foo bar/; use Module --rename => [\&baz, 'baz', v2.0];
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How should this work ? (design of Exporter::VA)
by traveler (Parson) on Dec 18, 2002 at 17:38 UTC | |
by John M. Dlugosz (Monsignor) on Dec 18, 2002 at 21:36 UTC | |
by traveler (Parson) on Dec 18, 2002 at 23:05 UTC | |
|
(tye)Re: How should this work ? (design of Exporter::VA)
by tye (Sage) on Dec 18, 2002 at 17:52 UTC | |
by John M. Dlugosz (Monsignor) on Dec 18, 2002 at 21:44 UTC |