in reply to Re: open (my $f, ....)
in thread open (my $f, ....)

Thanks, I didn't know about it for some reason :). I will of course check the return value of open for important code ;).