in reply to Re^2: Using a base module with a required version
in thread Using a base module with a required version
Yes, the two statements run at different times, as you found out:
package November; use base 'Juliet'; # runs at compile time Juliet->VERSION(1.1); # runs at runtime, after November.pm has been pa +rsed completely
This usually makes little difference as long as November.pm is its own file. If November.pm is loaded later, code from earlier modules will already have run by the time the ->VERSION() call is made.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using a base module with a required version
by davido (Cardinal) on Aug 02, 2019 at 19:56 UTC | |
by davido (Cardinal) on Aug 04, 2019 at 02:49 UTC | |
by Corion (Patriarch) on Aug 03, 2019 at 06:26 UTC | |
by davido (Cardinal) on Aug 03, 2019 at 06:30 UTC | |
|
Re^4: Using a base module with a required version
by Anonymous Monk on Aug 04, 2019 at 18:21 UTC |