So change your code to read
open (...) or die "Can't ope file: $!"; [download]
And you'll know more.
In reply to Re: problem opening file by moritz in thread problem opening file by koleti