开发者

Advantages of closing file handle in perl [closed]

开发者 https://www.devze.com 2023-03-02 16:29 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably an开发者_Python百科swered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably an开发者_Python百科swered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Advantage of closing file handle in Perl is that "$." gets

  1. reset
  2. cleans up buffer
  3. gives command status
  4. 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消