in reply to Perl 5.12.2 Data Structures
But no matter what kind of casts and !@#$%^&* stuff I put in there (like $# @{ $thirdList{$area} }, I get a "$# is no longer supported" type of error
Sometimes, you need squigglies.
$#{$thirdList{$area}}Alternately,
while (my ($area, $list) = each %thirdList) { foreach my $item (@$list) { print join(' - ', @$item), "\n"; } }
|
|---|