print {FH_hash{$foo}} $line_out; #### while (<{FH_hash{$foo}}>) { #...