From: Ovid <[EMAIL PROTECTED]>
> --- Eric Wilhelm <[EMAIL PROTECTED]> wrote:
> > Me too, except for how it reads in the 'use' statement.
> >
> > use aka 'Really::Long::Module::Name';
>
> Yeah, that bugs me too. Still, aka.pm is the name I lean toward.
Agreed.
> > As for the interface, I really like the 'as' part, but the 'import
> > => [qw(stuff)]' seems clunky. Is there a reason that this syntax
> > can't work:
> >
> > use dub 'Long::Name' qw(foo bar baz);
> > use dub 'Long::Name' as 'Name' qw(foo bar baz);
>
> That fails because if the real module accepts 'as' in the import
> list, I have no way to disambiguate things.
>
> As a convenience, if you only have a single import item, you can do
> this:
>
> use aka 'Really::Long::Module::Name' import => 'thingy';
Has anyone ever seen a module with a space in the name? If not we
might just as well use
use aka 'Really::Long::Module::Name as MName' qw(foo bar baz);
Eric Wilhelm <[EMAIL PROTECTED]> suggested:
> Now I'm strapped to come-up with a verb which doesn't sound so
> nounish. Consulting the resident linguist (aka wife) results in
> 'dub' (as in 'I dub thee'), so I'll throw that out as a suggestion.
>
> use dub 'Really::Long::Module::Name' as 'Name';
Sorry, that would not work for me. I found it in the dictionary, but I've never
heard/seen it. And I doubt other foreigners did either, may be mistaken.
Actually, what about "renamed"?
use renamed 'Really::Long::Module::Name as MName' qw(foo bar baz);
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery