Use the IO::Prompt module for prompting.
In reply to Re: Conditional question by andreas1234567 in thread Conditional question by Mr.Clean