in reply to Re^3: foreach loop and creating files with "$_"in thread foreach loop and creating files with "$_"
Less clutter, too:
open $file, '>', $temp . $_; [download]