in reply to interact with a UNIX pgm

You can use module Expect to handle interactive prompts.

Update: After long search with Super Search I have found one example of this module usage: autonuts

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org