Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Plotting XP

by zakb (Pilgrim)
on May 02, 2003 at 10:52 UTC ( [id://254958]=note: print w/replies, xml ) Need Help??


in reply to Re: Plotting XP
in thread Plotting XP

perldoc -f open

[...] You can put a '+' in front of the '>' or '<' to indicate you want both read and write access to the file; thus  '+<' is almost always preferred for read/write updates--the '+>' mode would clobber the file first.

Replies are listed 'Best First'.
Re: Re: Re: Plotting XP
by zakb (Pilgrim) on May 02, 2003 at 11:00 UTC

    OK, I read your message again. You said create.

    c:\> perl -e "open FH, '+<new_file.txt'; print FH '123'; close FH;" c:\> dir new_file.txt [..] File not Found

    Maybe Abigail-II's file already existed/was not created by this script? At least what open and close return is checked.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-03-28 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found