Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-08-12 03:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found