Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Plotting XP

by zakb (Pilgrim)
on May 02, 2003 at 10:52 UTC ( #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
Node Status?
node history
Node Type: note [id://254958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-11-26 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?