Advantages of closing file handle in perl [closed]
Advantage of closing file handle in Perl is that "$." gets
- reset
- cleans up buffer
- gives command status
- none
Please tell me the correct answer with explanation (if possible)
Read this close FILEHANDLE perldoc .
You can also look into perlvar for $.
There was an identical question posted to PerlMonks. You might look there at some of the excellent answers that question received: Why do we need to close filehandles?
精彩评论