in reply to Re: compound statement
in thread compound statement

The two argument form of open (without a "<" in front of the filename) will merrily delete all of your files when you run your script!
No it won't. open, with two arguments, defaults to opening for reading.

update: As ysth pointed out this quote was referring to a specific use of open. Thanks ysth, and my apologies to quester. Next time I'll read your nodes more thoroughly.

Replies are listed 'Best First'.
Re^3: compound statement
by ysth (Canon) on Oct 07, 2007 at 19:41 UTC
    Read the example above that statement more closely.