Name : perl-superclass
| |
Version : 0.003
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 19:23:33
|
Group : Development/Libraries/Perl
| Source RPM : perl-superclass-0.003-lp155.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Like parent, but with version checks
|
Description :
Allows you to both load one or more modules, while setting up inheritance from those modules at the same time.
If a module in the import list is followed by something that doesn\'t look like a legal module name, the \'VERSION\' method will be called with it as an argument;
The synopsis example is mostly similar in effect to
package Baz; BEGIN { require Foo; require Bar; require Baz; Baz->VERSION(1.23) push AATTISA, qw(Foo Bar Baz); }
Dotted-decimal versions should be given as a string, not a raw v-string, and must include at least one decimal point.
use superclass \'Bar\' => v65.65.65; # BAD: loads AAA.pm
use superclass \'Bar\' => \'v6\'; # BAD: loads v6.pm
use superclass \'Foo\' => \'v0.10.0\'; # OK
If the first import argument is \'-norequire\', no files will be loaded (but any versions given will still be checked).
This is helpful for the case where a package lives within the current file or a differently named file:
package MyHash; use Tie::Hash; use superclass -norequire, \'Tie::StdHash\';
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/noarch |