moo has asked for the wisdom of the Perl Monks concerning the following question:
hello all, i'm writing a bit of experimental code and i've run into an interesting wall. how does one retrieve the characters IN the scalar, array, or hash name? ie: how do i get the "example" in $example ( or @example / %example )? i've been reading through programming perl ( 2nd + 3rd editions ). i can automagically generate hashes on the fly using symbolic references, but cannot seem to pull the text of the name back out. i suspect that i can do it through the symbol table, but i don't understand all of that aspect of perl yet. also, this is not about solving a programming problem... it's something that i became interested in while researching something else. ( i got around it by keeping a list of what was automagically built. :) thanks, moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting at the text of an icon
by wog (Curate) on Dec 13, 2001 at 08:16 UTC | |
by giulienk (Curate) on Dec 13, 2001 at 13:47 UTC | |
|
Re: getting at the text of an icon
by impossiblerobot (Deacon) on Dec 13, 2001 at 08:16 UTC | |
by robin (Chaplain) on Dec 13, 2001 at 20:55 UTC | |
|
(shockme) Re: getting at the text of an icon
by shockme (Chaplain) on Dec 13, 2001 at 07:55 UTC |