in reply to Re: question about variabies/references (ignore my previous botched entry)
in thread question about variabies/references (ignore my previous botched entry)
No, I don't think this is true. When you do> Another piece of the puzzle is that putting curly > braces around anything that looks like a variable > causes Perl to interpolate the value of that > variable. Doing: > > $main::{$test} = "skot2"; > > first causes interpolation -- so that the > interpreter now has: > > $main::scott = "skot2";
you're manipulating the symbol table of package main; this is a very different thing than modifying a scalar variable ($main::scott). $main::scott and $main::{"scott"} are two different things.$main::{$test} = "skot2";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Symbol Table Madness
by chromatic (Archbishop) on Apr 05, 2000 at 21:57 UTC | |
by btrott (Parson) on Apr 05, 2000 at 22:30 UTC |