Don't ask to ask, just ask | |
PerlMonks |
Re^3: Variable Names and Referencesby Joost (Canon) |
on Mar 12, 2007 at 10:25 UTC ( [id://604305]=note: print w/replies, xml ) | Need Help?? |
Symbolic references are just names of global variables. That means "str2" is a symolic reference, just like "CGI::VERSION" is.
In other words; "${class}::VERSION"; is a symbolic reference, and ${"${class}::VERSION"}; derefences the reference into the value of $CGI::VERSION. Note that "hard" references use exactly the same syntax to dereference.
In Section
Seekers of Perl Wisdom
|
|