Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Plotting XP

by Anonymous Monk
on May 02, 2003 at 09:10 UTC ( #254941=note: print w/replies, xml ) Need Help??


in reply to Plotting XP

wow, that is bad code. How is +< supposed to create the data file?

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

    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.

      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.

Re: Plotting XP
by Abigail-II (Bishop) on May 02, 2003 at 22:15 UTC
    It doesn't. I never claimed it will. The data file I use, I originally seeded by hand.

    If I have given the suggestion the code I posted is something you can just download and run everywhere, I've given the wrong impression. I just posted code that runs daily on my system, and that was developped purely to run on my system. It was posted mainly for educational and illustrational purposes. It should run on many systems, but some assembly will be required.

    Abigail

      Nice one Abigail-II :-) ++

      As for me this code it's a "pure good thing" - nice idea, short code and some place left for (programmer, not the program) evolution :-)
      - It works for me... but nobody said it would work for you :-P

      Greetz, Tom.
Re^2: Plotting XP
by Aristotle (Chancellor) on May 02, 2003 at 14:26 UTC
    Why should it?

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-09-28 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (124 votes). Check out past polls.

    Notices?