in reply to Re^2: Curly braces variable
in thread Curly braces variable
Same way this is...
use strict 'refs'; ${ hello_world } = "hello world"; ${ $_ = hello_world } = "hello world";
They're both basically the same construct, but the syntax on line #2 is a symbolic reference that use strict 'refs' treats as an exception, and allows. The "Not-so-symbolic references" section in perlref documents this.
What it shows I suppose is that the line between symbolic references and hard references is slightly fuzzy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Curly braces variable
by chromatic (Archbishop) on Apr 30, 2012 at 22:06 UTC |