This, unfortunately, does not work:
my $input = "this is a test"; open(my $fh, "<", \$input); my $n = sysread($fh, $buf, 4);
Replacing sysread with read works as expected.
Is this expected? Is it possible to make it work? Did I miss something?
source share