in reply to Symbolic References

Simply, a symbolic reference generally uses the value of a variable1 as another variable's name.
# A simple example from http://perldoc.perl.org $name = "foo"; $$name = 1; # Sets $foo # $name is evaluated ("foo") as the name of the variable

Which is almost always NOT what you want to do (unless you really understand symbolic refs and have a good reason to do so). So if your code doesn't run under use strict 'refs'; you are accidentally using symbolic refs. This is why, using strict is often harped on.

While you are learning perl, it is much better to know how to avoid symbolic refs than knowing the details of them.

This is most likely your best reference.

UPDATE: 1 It can actually be any value, or expression that evaluates to a string. Thanks jdporter

grep
XP matters not. Look at me. Judge me by my XP, do you?

Replies are listed 'Best First'.
Re^2: Symbolic References
by brickwall (Acolyte) on Nov 26, 2006 at 20:24 UTC
    so are you saying that "foo", once a text string stored in $name, is now a variable in its own right with the value 1 stored in it? I think im still confused (oh and by the way, I read perlref and didnt get that either)
        So the value stored in $name ("foo") is unaltered, but we have created a new variable named $foo with a value of 1? Please dont track me down and kill me!!!! (I feel like im going around in circles)