use IO::Handle; sub IO::Handle::binmode { @_ == 2 or Carp::croak 'usage: $io->binmode(DISCIPLINE)'; binmode($_[0], $_[1]); } STDIN->binmode(":raw");
Does anyone know of a drawback or problem with this approach? And should it be submitted as an improvement to the core IO::Handle module?
In reply to Re: Object-oriented interface for binmode
by simonm
in thread Object-oriented interface for binmode
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |