in reply to Object-oriented interface for binmode
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Object-oriented interface for binmode
by gellyfish (Monsignor) on Jul 09, 2004 at 09:03 UTC | |
|
Re^2: Object-oriented interface for binmode
by BrowserUk (Patriarch) on Jul 09, 2004 at 09:13 UTC |