The 'extra' close allows for error checking as well, that's why it's a good idea to keep it - of course only if you really check for errors ;) close FILE or die "Couldn't close file: $!";
If you nevertheless want the continous counting of lines a la $. it shouldn't be a problem to do that yourself with something like $linecount++
-- Hofmator
In reply to Re: Re: reading multiple files one at a time
by Hofmator
in thread reading multiple files one at a time
by jumpstop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |