Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: sysopen function call

by rpike (Scribe)
on Sep 08, 2010 at 14:08 UTC ( #859325=note: print w/replies, xml ) Need Help??

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 (Pope) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859325]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-11-24 04:28 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (344 votes). Check out past polls.