{ open(my $FH, "<", $filename) or die("Cannot open: $filename\n $!"); while (<$FH>) { ... }; # unnecessary - $FH gets closed once it leaves lexical scope #close($FH); }
In reply to Re: How to test for open file handles?
by repellent
in thread How to test for open file handles?
by jdrago_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |