Copyright © tutorialspoint.com

# 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

Copyright © tutorialspoint.com