How to Install and Uninstall perl-aliased Package on openSUSE Leap

Last updated: May 02,2024

1. Install "perl-aliased" package

This guide let you learn how to install perl-aliased on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install perl-aliased

2. Uninstall "perl-aliased" package

In this section, we are going to explain the necessary steps to uninstall perl-aliased on openSUSE Leap:

$ sudo zypper remove perl-aliased

3. Information about the perl-aliased package on openSUSE Leap

Information for package perl-aliased:
-------------------------------------
Repository : Main Repository
Name : perl-aliased
Version : 0.34-bp155.2.12
Arch : noarch
Vendor : openSUSE
Installed Size : 37.8 KiB
Installed : No
Status : not installed
Source package : perl-aliased-0.34-bp155.2.12.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.