Tutorials Point


  Perl Home

  PERL Functions

© 2013 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL syswrite Function



Advertisements

Syntax

syswrite FILEHANDLE, SCALAR, LENGTH, OFFSET

syswrite FILEHANDLE, SCALAR, LENGTH


Definition and Usage

Attempts to write LENGTH bytes from SCALAR to the file associated with FILEHANDLE. If OFFSET is specified, then information is read from OFFSET bytes in the supplied SCALAR. This function uses the C/operating system write( ) function, which bypasses the normal buffering. You should therefore avoid using functions such as print and read in conjunction with this function.

Return Value

  • undef on error

  • Integer, number of bytes written



Advertisements


  

Advertisements