Same thing goes with using a slice or $# (last index) on an array reference: @$aref[@indices] and $#$aref or @{gimme_aref()}[@indices] and $#{gimme_aref()}.
Of course, if the curlies make it more clear to you, by all means use them.
In reply to Re: Re: Re: Populating a hash from array
by ysth
in thread Populating a hash from array
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |