in reply to Re: A mystery?
in thread A mystery?
Interesting that it dies under Linux with empty $!
I've no knowledge to address that.
The only possibility that springs to mind is that *nix sysread really objects to being used on a filehandle that has previously been used in "formatted IO" mode.
Ie. As the DATA pseudo-handle is actually the same handle used to read the source, which presumably reads it using formatted IO, trying to read it with low-level IO sysread() causes it to throw its hands up in disgust :)
even if I replace CRLF with LF.
sysread should be completely oblivious to CRLF/LF -- even if I was asking it to read one or more -- but I'm asking it to read 80 characters only, so there are no newlines (of any flavour) being read.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A mystery?
by Perlbotics (Archbishop) on Jul 16, 2013 at 08:47 UTC |