in reply to Pragma (more) like Java's 'import'?

Is this what you want? It's the other way around - from the caller's point of view...
use Foo::Bar::Baz; local *alias:: = *Foo::Bar::Baz::; print alias->new($a,$b,$c); # Foo::Bar::Baz=HASH(0x123456)

Cheers,
Ben

Replies are listed 'Best First'.
Re^2: Pragma (more) like Java's 'import'? (class name aliasing side effects)
by Aristotle (Chancellor) on May 12, 2003 at 06:31 UTC
    This will pass alias as the classname to Foo::Bar::Baz::new(), which is not necessarily desired.

    Makeshifts last the longest.