- Name: perl-aliased
- Version: 0.34
- Release: 1
- Epoch:
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: http://search.cpan.org/dist/aliased/
- Summary: aliased - use shorter versions of class names
- Architecture: noarch
- Size: 33604
- Distribution: PLD 3.0 (Th)
- Vendor: PLD
- Packager: PLD bug tracking system ( http://bugs.pld-linux.org/ )
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.
- OptFlags:
- Cookie: ep09-pld 1455518049
- Buildhost: ep09-pld