in reply to Testing Interactive Interface?
Use Test::MockObject to mock up whatever you need from Term::ReadLine. I can't present any code, so my answer is a bit gnomic, I know. However, I'm sure you'll figure it out.