I changed the order of the program execution to resolve this problem but i have one more question now...I am doing a check on $choice for value 1 or 2 ,if not print "INVALID CHOICE" and then exit the program.Is there a way to ask the user to re-enter the choice rather than exiting the program?
print "\nEnter your choice: "; my $choice = <>; chomp ($choice); if($choice != (1||2)){ print "/*******************************************************/\n +"; print "INVALID CHOICE\n"; print "/*******************************************************/\n +"; exit; }
In reply to Re^4: Redirecting"enter" when an external command is running..
by perl_mystery
in thread Redirecting"enter" when an external command is running..
by perl_mystery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |