You (
chromatic) wrote:
> 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";
No, I don't think this is true. When you do
$main::{$test} = "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.