in reply to Re: Assign and print Hash of hashes
in thread Assign and print Hash of hashes

Dear Monk,

Thanks for the reply and suggestions. I have one doubt here. You suggested me to use a 3 argument form of open, but yours and my file open, seem to be the same. Can you please tell me, what exact difference will it make in a 3 argument and a 2 argument file open?

Replies are listed 'Best First'.
Re^3: Assign and print Hash of hashes
by jffry (Hermit) on Nov 23, 2010 at 16:28 UTC

    I'm quoting from Perl Best Practices, by Damian Conway, chapter 10, the "Open Cleanly" section.

    Using a three-argument open instead ensures that the specified opening mode can never be subverted by bizarre filenames, since the second argument now specifies only the opening mode...
    ...as a small side-benefit, each open becomes visually more explicit about the intended mode...