Exactly. Your snippet is equivalent to:
my %h = (); foreach (0..$#FIELDS) { $h{$FIELDS[$_]} = $row[$_] } $result = \%h;
It's called a hash slice, and it should be documented in perldata.
In reply to Re: Hash newbie
by ikegami
in thread Hash newbie
by christiffer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |