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";
In reply to RE: Re: question about variabies/references (ignore my previous botched entry)
by btrott
in thread question about variabies/references (ignore my previous botched entry)
by howard40
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |