Rhandom has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas, or is it really even feasible?use MyIO::Handle (); my $io = MyIO::Handle->new(); # ISA IO::Handle $io->fdopen(fileno(STDIN), 'r'); $io->fdopen(fileno(STDOUT),'w'); # don't block over STDIN my $line = <$io>; print $io "You said $line";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Munging STDIN and STDOUT into one handle
by japhy (Canon) on Feb 13, 2001 at 22:51 UTC | |
|
Re: Munging STDIN and STDOUT into one handle
by chromatic (Archbishop) on Feb 13, 2001 at 22:53 UTC |