in reply to Re^2: File handles and loops
in thread File handles and loops
You rarely need to close lexical file handles. They automatically close once the variable goes out of scope. That is, if the my $fh is defined within a function, then once that function finishes executing, the file handle disappears.
|
|---|