P
preacher37
for (@some_array) {
@new_array = &do_someting_elesewhere($_);
# ceate a hash using an element from the array as a key
$some_hash{$new_array[2]} = @new_array;
}
So, how do I see the n^th element of each array?
foreach $key (keys %some_hash) {
print $some_hash{$key}[n^th];
}
no workey...
I've tried a million of those impenetrable variations i.e. @{$some_hash
[n^th]}, etc. but cant find the right syntax. Any help?
@new_array = &do_someting_elesewhere($_);
# ceate a hash using an element from the array as a key
$some_hash{$new_array[2]} = @new_array;
}
So, how do I see the n^th element of each array?
foreach $key (keys %some_hash) {
print $some_hash{$key}[n^th];
}
no workey...
I've tried a million of those impenetrable variations i.e. @{$some_hash
[n^th]}, etc. but cant find the right syntax. Any help?