in reply to Restriction on getting multiline data into a string
The idea is to determine the size of the file with seek and tell, and then keep reading $block_size number of characters into the scalar, in a loop, until there is no more input.sysread FILEHANDLE, $scalar, $block_size;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Restriction on getting multiline data into a string
by tilly (Archbishop) on Nov 19, 2003 at 16:08 UTC |