in reply to Multiple STDIN sources

You've got a technical solution in other posts. So I'll just recommend spliting your program into a just_do_it.pl and confirmation_wrapper.pl

iselect solves a similar problem in a general way but may not be useful to you directly.