If you're wondering about the buffer size parameter for read(); that has nothing to do with the length of the stream/filehandle you're reading from - it's just an intermediate buffer size.
Generally you do something like:
binmode $fh; my $buff; my $total; while (read($fh,$buff,$max_buffer_size)) { $total .= $buff; # usually, you do something smarter than this... } # now all data is in $total.
In reply to Re: Reading a zipped file
by Joost
in thread Reading a zipped file
by MonkPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |