[Pdx-pm] Testing STDIN
David E. Wheeler
david at kineticode.com
Mon Aug 6 10:33:37 PDT 2007
On Aug 4, 2007, at 15:19, Michael G Schwern wrote:
> 1) close STDIN, though I don't remember why this was necessary
> 2) tie STDIN using TieIn
> 3) Put some stuff on STDIN using write()
> 4) Read from STDIN
>
> You can steal TieIn for yourself.
> http://search.cpan.org/src/MSCHWERN/ExtUtils-MakeMaker-6.36/t/lib/
> TieIn.pm
It'd be worth it for someone to put this in a module, the way that
someone put your TieOut.pm module in Test::Output.
Best,
David
More information about the Pdx-pm-list
mailing list