http://www.perlmonks.org?node_id=859325


in reply to Re: sysopen function call
in thread sysopen function call

Been down that road. I need to read and write to the same file handle. I need to read a file in, modify content, and then write back to the file. After trying open I had feedback I couldn't accomplish it using it because +> was messed up (confirmed that after attempting it as well). Right now I'm trying to get a (should be) simple case of sysopen working but to no avail.

Replies are listed 'Best First'.
Re^3: sysopen function call
by BrowserUk (Patriarch) on Sep 08, 2010 at 15:13 UTC
    because +> was messed up

    I strongly suspect that if you posted the complete script, that the reason for your failure(s) would become clear.

    In particular, I suspect that you are attempting to reopen and overwrite an existing file, to which you already hold an open filehandle. If that is the case, and you are running on Windows, the OS won't let you do that.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.