in reply to Symbolic References
# 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Symbolic References
by brickwall (Acolyte) on Nov 26, 2006 at 20:24 UTC | |
by Joost (Canon) on Nov 26, 2006 at 20:26 UTC | |
by brickwall (Acolyte) on Nov 26, 2006 at 20:32 UTC | |
by Joost (Canon) on Nov 26, 2006 at 20:36 UTC | |
by brickwall (Acolyte) on Nov 26, 2006 at 20:50 UTC |