Subject: | IO::String doesn't implement BINMODE etc |
perldoc perltie says:
A class implementing a tied filehandle should define the following
methods: TIEHANDLE, at least one of PRINT, PRINTF, WRITE,
READLINE, GETC, READ, and possibly CLOSE, UNTIE and DESTROY. The
class can also provide: BINMODE, OPEN, EOF, FILENO, SEEK, TELL - if
the corresponding perl operators are used on the handle.
But IO::String doesn't implement BINMODE, and maybe others, so you can't
use the binmode operator on an IO::String object without it blowing up
with the error "Can't locate object method "BINMODE" via package
"IO::Scalar""