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]}
In reply to Re: Dereferencing Subroutine Arguments by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |