in reply to Re: To die or not to die
in thread To die or not to die

You're right. After thinking about what you had said, I should have put:

open FH, "user1.cfg" not ">user1.cfg"

Well at least that is what I was trying for initially.

There is no emoticon for what I'm feeling now.

Replies are listed 'Best First'.
Re^3: To die or not to die
by Aristotle (Chancellor) on Oct 29, 2002 at 20:42 UTC
    You should better have said open FH, "<user1.cfg" or, really, open FH, "<", "user1.cfg". Make it a habit of using the three-argument form of open - esp since I suspect that in this case, your filename will not be hardwired but dynamic and maybe even derived from user input. In that case, the two-argument form may leave you open to a range of problems from "simple" bugs to outright security holes.

    Makeshifts last the longest.