Confused by sysread()

Roger Burton West roger at
Mon Apr 9 23:16:41 BST 2012

On Mon, Apr 09, 2012 at 02:52:10PM -0700, Yitzchak Scott-Thoennes wrote:

>You've probably switched from perl using stdio to using perlio.

The perl I have certainly has USE_PERLIO set.

>could compile 5.10.1 with usestdio to see if that makes a difference.
>Or you could try a newer perl and see if this is a bug that perhaps
>has been fixed?

Oh dear. I could, but it's rather a slog.

>Which strikes a vague bell...does it help to say: my $data = '';

No. Nor to initialise it to the size of the buffer.


More information about the mailing list