in reply to Re^3: Getting rid of "new" (aliased.pm)
in thread Getting rid of "new"

Oh, and that last example would need to be use aliased 'alias'; to meet my best practices. I suspect your module doesn't support that, so I doubt I'll be using it until that gets fixed. :)
To be honest, the name alias conflicts with a function in the module Data::Alias by xmath, which IMO is much more interesting, to get the rights to use the name.

I wish perl5 had an easy way to import stuff into names of your own choice.

Replies are listed 'Best First'.
Re^5: Getting rid of "new" (exported aliases)
by tye (Sage) on Jul 07, 2006 at 19:47 UTC

    It'd be a moderately simple change to Exporter to support:

    use aliased qw( aliasMod=alias ); use Data::Alias qw( aliasData=alias ); use Lexical::Alias qw( lexAlias=alias );

    and one that I've long expected to happen. But you'd have to get aliased.pm to support being passed an argument destined for Exporter.pm, of course.

    - tye        

Re^5: Getting rid of "new" (aliased.pm)
by xdg (Monsignor) on Jul 12, 2006 at 11:28 UTC
    I wish perl5 had an easy way to import stuff into names of your own choice

    If only more module authors started using Sub::Exporter...

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.