in reply to Re^4: problems opening logfile
in thread problems opening logfile

try printing $file before your script dies, see what path perl thinks its opening...

Chances are your problem is just that your idea of what that file's path is, and perl's, aren't exactly the same...