The binmode and diamond ops are part of perl's buffered IO scheme. Sysread is a lower level system read, similar to the C library's read function. To use sysread as if <> were acting, you need to check if @ARGV has anything in it. If not, sysread from STDIN, otherwise open each filename in @ARGV and sysread until done.
After Compline,
Zaxo
In reply to Re: binmode and sysread on <>
by Zaxo
in thread binmode and sysread on <>
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |