Tutorials Point

Google
Web This Site

  Perl Home

  PERL Functions

© 2006 TutorialsPoint.COM


  Home     References     About TP     Advertising  

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.



Printer Friendly



  

Advertisement