Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $autoSubmit; sub autoSubmit{ print "Would you like the logs submitted? Y\\N?: "; $autoSubmit = getInput; return $autoSubmit; } autoSubmit; if(( lc($autoSubmit) ne "y") and ($autoSubmit ne "n")) { print "You did not enter in Yes or No. Please try again\n"; autoSubmit; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Recursive If statement not working.
by Transient (Hermit) on Jun 25, 2009 at 19:13 UTC | |
Re: Recursive If statement not working.
by kennethk (Abbot) on Jun 25, 2009 at 19:19 UTC | |
Re: Recursive If statement not working.
by Old_Gray_Bear (Bishop) on Jun 25, 2009 at 19:28 UTC | |
by Transient (Hermit) on Jun 25, 2009 at 19:49 UTC |