Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
"be consistent"
 
PerlMonks  

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.


Comment on Re^2: sysopen function call
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-04-16 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls