in reply to Dereferencing Subroutine Arguments
in thread Re: Dereferencing Subroutine Arguments
and replace the word (here FOO) with a block returning the reference:@FOO
Only when the braces enclose a simple scalar variable (like $x) can you drop the braces. You don't have a simple scalar here, so the braces must remain on.@{$a[0]}
|
|---|