Reading the File
Reading the File
- Retrieving a file handle for the file
$filehandle = param('uploaded file');exit 0 unless $filehandle;
- Reading from a text file
while (<$filehandle>) { do_something(); }
- Reading from a binary file
while (read($filehandle,$scalar,1024)) { do_something($scalar);}