in reply to Read first line from each file in a directory
open WRITE, '<', '$file' or die $!; [download]