I'm close to get me crazy.
I have an array that seems to be ok. My array contains filenames (as keys) and full path on the values of the array. I checked that it's working.. up to here ok. Here is my code:
open (FILE, "comb_d.txt");
@l = <FILE>;
foreach $line (@l) {
chomp($line);
my @linea = split(/separator/,$line);
$hash_d{$linea[0]} = $linea[1];
}
As I said.. it works, because I verified that:
foreach my $llave (keys %hash_o) {
print "$llave = $hash_o{$llave}\n";
}
and it gives me full hash without issues..
Here comes the problem. I don't want to use all filenames (all keys) on my array, just a set of them. actually, there is a set of keys stored on @isect
. But when I run:
foreach my $llave ( @isect ) {
print "$llave = $hash_o{$llave}\n";
}
My result is:
filename1 =
filename2 =
I'm pretty sure that the elements on @isect
exist as keys of %hash_o
.
Help please
Thanks!!