in reply to Re^3: Using a base module with a required version
in thread Using a base module with a required version
I looked at the code for parent, which in most cases should be used instead of base. I'm wondering (since you have been involved in parent) what you think of a parent::versioned that could be invoked like this:
use parent::versioned 'Foo'; # No version checking. use parent::versioned qw(Foo Bar); # No version checking. use parent::versioned --norequire qw(Foo Bar); # Still no version chec +king. use parent::versioned ['Foo' => 0.23], ['Bar' => 1.5], 'Baz'; # Versio +n checking on Foo and Bar. use parent::versioned --norequire 'Baz', ['Foo' => 0.23]; # Version ch +ecking on Foo.
Implementation would be really straightforward as a fork off of existing parent (so as not to clutter parent with baggage).
Hashrefs could be used instead, so that multiple entries could reside within a single hashref, but the array-ref keeps things nicely flat.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using a base module with a required version
by davido (Cardinal) on Aug 04, 2019 at 02:49 UTC | |
|
Re^5: Using a base module with a required version
by Corion (Patriarch) on Aug 03, 2019 at 06:26 UTC | |
by davido (Cardinal) on Aug 03, 2019 at 06:30 UTC |