in reply to Re: Re: open works fine but not working
in thread open works fine but not working

All I can say is that if the open doesn't fail, that means it opened a filehandle. Now, there is a way to have the open fail if the file doesn't exist.

One more thing to check is to make sure that you don't have any relative-path craziness. Do you change directories during this program's execution? If you do, that could very possibly be the reason why this fails intermittently.

Replies are listed 'Best First'.
Re: Re:{3} open works fine but not working
by clscott (Friar) on Jul 27, 2001 at 00:31 UTC
    No, I am using absolute paths. And I have to assume the file is opening since it doesn't die.

    I actually have quite a lot of perl experience, this is just such a damned weird problem.

    Oooh. I just tried printing $! on it's own and it's last value ( I thought it wouldn't have one if it made it this far in the execution path) is: Not a typewriter

    What does that mean?

    Clayton --
    Clayton aka "Tex"