in reply to Sharing Namespaces
The namespace copy has to happen at compile-time. Perl won't respect runtime namespace replacement, since it optimizes away global variable lookups into static addressing at runtime....perl -le 'BEGIN { $Foo::bar = "Hello"; %Baz:: = %Foo::; } print $Baz:: +bar'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sharing Namespaces
by shotgunefx (Parson) on Jan 30, 2006 at 14:41 UTC |