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

but I'm fairly certian that you want %s there, or even better *s
Assigning with %Foo::Bar::Baz:: will copy the various globs in the symbol table, which should suffice, copying the glob is more efficient and explicitly accessing the glob would do the same job e.g
## copy every glob %main::Baz:: = %Foo::Bar::Baz::; ## copy the Baz:: glob $main::{"Baz::"} = $Foo::Bar::{"Baz::"}; ## explicitly reference the glob *main::Baz:: = *Foo::Bar::Baz::
They all achieve the same goal (roughly), whereas the first example does a complete copy of the symbol table, the second two just create a reference. So one of the second two would be the desired behaviour in this case.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Re: Re: Pragma (more) like Java's 'import'?
by theorbtwo (Prior) on May 11, 2003 at 23:05 UTC
    D'oh!