in reply to Re: Overriding Exporter::import
in thread Overriding Exporter::import
This method will usually not get called. Quoting "perldoc -f use":
If the VERSION argument is present between Module and LIST, then the `use' will call the VERSION method in class Module with the given version as an argument. The default VERSION method, inherited from the UNIVERSAL class, croaks if the given version is larger than the value of the variable `$Module::VERSION'.The Exporter::require_version is only a fall-back for mistakes like: use My::Module qw( 5.5 MyFunc ); which should really be written as: use My::Module 5.5 qw( MyFunc ); Note how the version number doesn't have a comma after it.
So you need to have your module do some "sub VERSION" if you want to subvert the &UNIVERSAL::VERSION version of the sub.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Overriding Exporter::import
by John M. Dlugosz (Monsignor) on Jul 19, 2001 at 22:26 UTC | |
by tye (Sage) on Jul 19, 2001 at 23:04 UTC | |
by John M. Dlugosz (Monsignor) on Jul 20, 2001 at 00:22 UTC | |
by tye (Sage) on Jul 20, 2001 at 01:09 UTC | |
by John M. Dlugosz (Monsignor) on Jul 20, 2001 at 02:53 UTC |