"::--Koshy Kerteya--~!~" wrote:
>
> Hi,
>
> How do I read a file byte by byte under perl? ? ?
> Anyone has a n idea on that ?
>
> Thanks for any info on this.
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
man perlfunc, scroll to "read"
read FILEHANDLE,SCALAR,LENGTH
Attempts to read LENGTH bytes of data into
variable SCALAR from the specified FILEHANDLE.
Returns the number of bytes actually read, 0 at
end of file, or undef if there was an error.
SCALAR will be grown or shrunk to the length
actually read. An OFFSET may be specified to
place the read data at some other place than the
beginning of the string. This call is actually
implemented in terms of stdio's fread(3) call. To
get a true read(2) system call, see sysread().
should be a good place to start :)
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.