in reply to
Testing a subroutine with STDIN
I believe
IO::Prompt
could be what you need.
Comment on
Re: Testing a subroutine with STDIN
In Section
Seekers of Perl Wisdom