in reply to Constructing Variable Arrayname
push @{$stats[$month]}, $value; ... for my $month (1..12) { print "NR ", scalar(@{$stats[$month]}), "\n"; print $stats[$month][0], "\n"; } [download]
update: As Corion reminded me, that should really be 0..11
Dave.