use strict; use warnings; while(my $input = <STDIN>){ die "User requested exit" if $input eq 'exit'; #do whatever... }
In reply to Re: Entering EXIT at any prompt
by jrsimmon
in thread Entering EXIT at any prompt
by trenchwar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |