#!/usr/bin/perl use strict; my %hash; my $i; $hash{"array"} = ['a','b','c','d','e']; for ($i = 0; $i <= $#{ $hash{array} }; $i++) { print "$i = $hash{array}[$i]\n"; }
In reply to Re: referring to anonymous array in value of a hash in array context...
by davidj
in thread referring to anonymous array in value of a hash in array context...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |