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; }
In reply to Recursive If statement not working. by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |