in reply to Re^14: print() on closed filehandle
in thread print() on closed filehandle

Sorry I'm wrong ..... I tried again to create the file in advance ..... and it works this time when I do that. So the take home point from this discussion is that when using ">" to create or use a file on a shared Network, within a MS environment, then the file will not be created in the event of it being absent. Perhaps this is something that the Perl developers need to look at.

Replies are listed 'Best First'.
Re^16: print() on closed filehandle
by diotalevi (Canon) on Dec 15, 2004 at 13:31 UTC

    No, that's not true. I write perl on Windows all the time including using > to create new files and also including doing this on network shares. I was doing that just yesterday. Whatever it was that was wrong, it is something in the configuration on your end, perhaps in permissions.

Re^16: print() on closed filehandle
by ysth (Canon) on Dec 15, 2004 at 11:10 UTC
    I doubt it is as simple as that; knowing what $^E is when the open fails may provide some insight into what factors make the problem manifest.