The open with 3 args seperate special characters from the filename, allowing you to access files you couldn't access before, and preventing the unintended creation, destruction and execution of other files.
Limiting the scope of all variables (not just file handles) is a great practice. It frees resources earlier. It limits the number of things the programmer and the maintainer must track. It prevents bugs and the maintainability nightmares of having a variable server multiple purposes. etc.
In reply to Re^3: how to prevent open from dying
by ikegami
in thread how to prevent open from dying
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |