How to Install and Uninstall perl-aliased Package on openSuSE Tumbleweed
Last updated: November 23,2024
1. Install "perl-aliased" package
This guide let you learn how to install perl-aliased on openSuSE Tumbleweed
$
sudo zypper refresh
Copied
$
sudo zypper install
perl-aliased
Copied
2. Uninstall "perl-aliased" package
Please follow the steps below to uninstall perl-aliased on openSuSE Tumbleweed:
$
sudo zypper remove
perl-aliased
Copied
3. Information about the perl-aliased package on openSuSE Tumbleweed
Information for package perl-aliased:
-------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : perl-aliased
Version : 0.34-1.29
Arch : noarch
Vendor : openSUSE
Installed Size : 36.9 KiB
Installed : No
Status : not installed
Source package : perl-aliased-0.34-1.29.src
Upstream URL : http://search.cpan.org/dist/aliased/
Summary : Use shorter versions of class names
Description :
'aliased' is simple in concept but is a rather handy module. It loads the
class you specify and exports into your namespace a subroutine that returns
the class name. You can explicitly alias the class to another name or, if
you prefer, you can do so implicitly. In the latter case, the name of the
subroutine is the last part of the class name. Thus, it does something
similar to the following:
use Some::Annoyingly::Long::Module::Name::Customer;
sub Customer {
return 'Some::Annoyingly::Long::Module::Name::Customer';
}
my $cust = Customer->new;
This module is useful if you prefer a shorter name for a class. It's also
handy if a class has been renamed.
(Some may object to the term "aliasing" because we're not aliasing one
namespace to another, but it's a handy term. Just keep in mind that this is
done with a subroutine and not with typeglobs and weird namespace munging.)
Note that this is *only* for 'use'ing OO modules. You cannot use this to
load procedural modules. See the the Why OO Only? manpage section. Also,
don't let the version number fool you. This code is ridiculously simple and
is just fine for most use.
-------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : perl-aliased
Version : 0.34-1.29
Arch : noarch
Vendor : openSUSE
Installed Size : 36.9 KiB
Installed : No
Status : not installed
Source package : perl-aliased-0.34-1.29.src
Upstream URL : http://search.cpan.org/dist/aliased/
Summary : Use shorter versions of class names
Description :
'aliased' is simple in concept but is a rather handy module. It loads the
class you specify and exports into your namespace a subroutine that returns
the class name. You can explicitly alias the class to another name or, if
you prefer, you can do so implicitly. In the latter case, the name of the
subroutine is the last part of the class name. Thus, it does something
similar to the following:
use Some::Annoyingly::Long::Module::Name::Customer;
sub Customer {
return 'Some::Annoyingly::Long::Module::Name::Customer';
}
my $cust = Customer->new;
This module is useful if you prefer a shorter name for a class. It's also
handy if a class has been renamed.
(Some may object to the term "aliasing" because we're not aliasing one
namespace to another, but it's a handy term. Just keep in mind that this is
done with a subroutine and not with typeglobs and weird namespace munging.)
Note that this is *only* for 'use'ing OO modules. You cannot use this to
load procedural modules. See the the Why OO Only? manpage section. Also,
don't let the version number fool you. This code is ridiculously simple and
is just fine for most use.