in reply to Re^2: Trouble iterating through a hash
in thread Trouble iterating through a hash
I would advise the OP to use:
before starting the while loop.my $discard_first_line = <FILE1>;
I agree with your other points, except that as written $info2 = $hash2 -> {$prog} -> {info2}; doesnt hurt either, it does that when the -> is assumed in $info2 = $hash2 -> {$prog}{info2}; anywayMy point is that there is no need at all for a 2nd dimension on the first hash, and no need for the 2nd hash at all!
|
|---|