The open.pm pragma is what should allow you to set binmode for the "magic" @ARGV-based <>, but it doesn't. A patch to make this happen would be pretty simple if <> were fixed to not be an exploit source.
However, p5p insists that the input operator, <>, must be able to react to "perl -ne *" by opening output handles to create files (if there are any files whose names start with ">") or run arbitrary commands (if there are any files whose names start with "|").
This stopped my working on the patch to fix open.pm to be useful for <>.
- tye
In reply to Re: binmode and sysread on <> (open.pm)
by tye
in thread binmode and sysread on <>
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |