I have a hash (%filehandle) which stores filehandles as its values. But I can not print them.
My hash looks like this:
my %filehandle;
foreach my $output (@outputs){
foreach my $fp (@fp_values_array){
$filehandle{$output}{$fp}=undef;
}
}
print Dumper \%filehandle;
$VAR1 = {
'GMAF' => {
'0.05' => \*{'::$__ANONIO__'},
'1' => \*{'::$__ANONIO__'},
'0.001' => \*{'::$__ANONIO__'}
}
};
I know that the problem is that the values are references but I'm starting with perl and I don't know how to acces to them...
I have tried something like this:
print "$_\n" for (keys ${$filehandle{GMAF}{$fp_value_array}});
But it doesn't work.
Type of argument to keys on reference must be unblessed hashref or arrayref at report.pl line 369, <INPUT> line 5000.
If someone can help me I would be very grateful.
Thanks in advanced!