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.