in reply to Hash values as filehandles
print {$fh{$record[0]}} $_; [download]
See print in perlfunc.
-- John.