Perl Monk, Perl Meditation | |
PerlMonks |
Re: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address enteredby BillKSmith (Monsignor) |
on Nov 28, 2014 at 22:05 UTC ( [id://1108670]=note: print w/replies, xml ) | Need Help?? |
It probably is to late now, but you should at least consider a module such as IO::Prompt::Hooked. It does all the looping for you. All you provide is the messages and a callback to validate the response.
Bill
In Section
Seekers of Perl Wisdom
|
|