Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL syswrite Function



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



Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names