PERL close Function

Syntax

close FILEHANDLE
close

Definition and Usage

Closes FILEHANDLE, flushing the buffers, if appropriate, and disassociating the FILEHANDLE with the original file, pipe, or socket. Closes the currently selected filehandle if none is specified.

Return Value

  • 0 on failure
  • 1 if buffers were flushed and the file was successfully closed

Example

Check Perl File I/O Session for Example on open and close.

No comments:

Post a Comment