One more might be that lexical filehandles are closed automatically when they go out of scope, but bareword filehandles are not (only when the script ends, which may be a lot later, depending on the code).
A lexical file handle declared at top-level only goes out of scope at the end of the script, just like a bareword file handle. We have gone way off into the weeds and have now talked past each other. I will just agree to disagree and carry on.
In reply to Re^12: Summing numbers in a file
by jcb
in thread Summing numbers in a file
by pvfki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |