6 ms·
Yes its seems common for Perl libraries in commercial environments to get very long and come a right PITA ;-( However check out the excellent "aliased" module.
by draegtun 18y ago
Yes its seems common for Perl libraries in commercial environments to get very long and come a right PITA ;-(
However check out the excellent "aliased" module... http://search.cpan.org/dist/aliased/ http://search.cpan.org/dist/aliased/
From its POD...
use aliased 'My::Company::Namespace::Customer';
my $cust = Customer->new;
use aliased 'My::Company::Namespace::Preferred::Customer' => 'Preferred';
my $pref = Preferred->new;
- DavidMcLaughlin 18y agoCPAN strikes again, I was actually hoping someone would show me a better way when I posted that. So thanks!