2. Anywhere you'd put an identifier (or chain of identifiers) as part of a variable or subroutine name, you can replace the identifier with a BLOCK returning a reference of the correct type.
So to dereference $OrigArray, you would use @{$OrigArray}; however, perl allows you to omit the curlies for simple cases so most people write that as @$OrigArray.
-derby
In reply to Re: The @$ array construct
by derby
in thread The @$ array construct
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |