in reply to creating a new symbol table glob
The only problem is that perl compiles in glob addresses when it knows them, so only symbolic references acknowledge the new glob address. For instance, try this:package pkg; print \*{"pkg::foo"}; { local %pkg::; print \*{"pkg::foo"}; } print \*{"pkg::foo"};
They *should* have the same address, but they don't since the address looked up at compile-time.{ package pkg; local %pkg::; print \*{"pkg::foo"}; print \*foo; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: creating a new symbol table glob
by ysth (Canon) on Nov 04, 2003 at 12:49 UTC | |
by Anonymous Monk on Nov 05, 2003 at 04:32 UTC | |
by jql (Acolyte) on Nov 05, 2003 at 04:39 UTC |