in reply to Re^2: Why do we need to close filehandles?
in thread Why do we need to close filehandles?

There’s a solid technical reason for paying close attention to file-handles ... buffering.
Well, you can just flush the handle; there's no need to close it. And if you do things in a logical way, you either read/write using buffered I/O, or you read/write using unbuffered I/O. In either case, you should be fine.
  • Comment on Re^3: Why do we need to close filehandles?