in reply to binmode and sysread on <>
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
|
|---|