in reply to Re^2: Compare hash with arrays and print
in thread Compare hash with arrays and print

Doesn't select command selects the file and print the contents?
No, select alone will not print to a file. You must also use print, as you have done in your new code example.
  • Comment on Re^3: Compare hash with arrays and print