The read function will read a specified number of bytes from a filehandle into a variable. The format is: read( filehandle name, $string, number of bytes to read ); For example: read( STDIN, $input, $ENV{'CONTENT_LENGTH'} );
read( filehandle name, $string, number of bytes to read );
read( STDIN, $input, $ENV{'CONTENT_LENGTH'} );
[ Back ]