Sophie

Sophie

distrib > PLD > th > ppc > by-pkgid > 1b5958600cafdafdb43234c231fef3ae

perl-aliased-0.34-1.noarch.rpm

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.

Other version of this rpm: