http://www.perlmonks.org?node_id=1058731


in reply to Testing Interactive Interface?

There are several approaches:

I'd certainly go with the first option if possible, and fall back to the second option if ithe first isn't applicable.