And it uses bare filehandles instead of lexically scoped ones. And it does that without ever closing any files after use.There are worse things in the world than that. And as a matter of fact it does close every file but the last one. Lexically scoped filehandles are neat, and should definitely be used in a subroutine or a module, but I don't see pressing need to convert newbies to their use in the main code of a script. I also am not sure I see the point of doing an explicit close unless you want to take some action if it returns an error.
In reply to Re^2: files stored in an array
by ysth
in thread files stored in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |