Name : perl-relative
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.7.1
| Date : 2023-01-27 17:32:30
|
Group : Development/Libraries/Perl
| Source RPM : perl-relative-0.04-lp154.7.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Load modules with relative names
|
Description :
This module allows you to load modules using only parts of their name, relatively to the current module or to a given module. Module names are by default searched below the current module, but can be searched upper in the hierarchy using the \'..::\' syntax.
In order to further loosen the namespace coupling, \'import\' returns the full names of the loaded modules, making object-oriented code easier to write:
use relative;
my ($Maker, $Publisher) = import relative qw(Create Publish); my $report = $Maker->new; my $publisher = $Publisher->new;
my ($Base, $Factory) = import relative -to => \"Enterprise::Framework\" => qw(Base Factory); my $thing = $Factory->new;
This can also be written using aliases:
use relative -aliased => qw(Create Publish); my $report = Create->new; my $publisher = Publisher->new;
use relative -to => \"Enterprise::Framework\", -aliased => qw(Base Factory); my $thing = Factory->new;
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-R/15.4/noarch |