in reply to Re^2: How to interpolate CONSTANTS in Here docs?
in thread How to interpolate CONSTANTS in Here docs?
If you spread it out,
"foo @{[ F ]} bar"
you get
my @anon_array = F; my $anon_ref = \@anon_array; "foo @{ $anon_ref } bar"
As you can see,
@BLOCK (@{ STATEMENTS }) is an array dereference, not "a hash".
[ LIST ] is an array constructor, not "an array index". It creates an array, assigns the result of LIST, and returns a reference to that array.
|
|---|