in reply to Re: symboltable problem
in thread symboltable problem
I re-phrase my question:
For package "Hubba", it's symbol table is stored in a hash %Hubba:: that maps symbol-names to typeglobs.
So when I do %Bubba:: = %Hubba:: (I am NOT doing *Bubba::=*Hubba::) the whole symbol-to-typeglob mapping is copied to another hash (which happens to be the symbol-table of another package).
So why does that then not create aliases?
I can do this:
which shows that I can create variables by manipulating the symbol-table. Why does that not happen in my script?our $var = "zappa"; $Bubba::{abba} = *var; print $Bubba::abba;
Can someone explain that in plain english without using the word "magic"?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: symboltable problem
by Eliya (Vicar) on Jun 20, 2012 at 21:26 UTC | |
by choroba (Cardinal) on Jun 20, 2012 at 21:55 UTC | |
by morgon (Priest) on Jun 21, 2012 at 16:00 UTC |