| From | Sent On | Attachments |
|---|---|---|
| Ovid | Jan 6, 2005 10:48 pm | |
| David Nicol | Jan 7, 2005 4:15 pm | |
| Ovid | Jan 7, 2005 5:13 pm |
| Subject: | I named it aliased.pm | |
|---|---|---|
| From: | Ovid (publ...@yahoo.com) | |
| Date: | Jan 6, 2005 10:48:28 pm | |
| List: | org.perl.module-authors | |
Since absolutely no one could agree on the name, I went ahead and uploaded the module as 'aliased'. Right now, 0.1 is available on the CPAN, but .11 is on its way. The code is the same, but I accidentally uploaded it before I had finished the docs.
The interface is slightly different, too.
# implicit alias: use aliased 'Some::Long::Module::Name';
# explicit alias: use aliased 'Some::Long::Module::Name' => 'Name';
# import lists require using explicit aliasing: use aliased 'Some::Long::Module::Name' => 'Name, qw/foo bar baz/;
# and all of the above allow you to call class methods # on the alias: my $new_name = Name->new; my $old_name = Name->search($id); # etc.
Thanks for all of the suggestions.
Cheers, Ovid
=====
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/





