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...
In reply to Re^3: Assign and print Hash of hashes
by jffry
in thread Assign and print Hash of hashes
by sundeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |