Although my disclaimer is that the above is untested.my $upper_limit = 10; my $lower_limit = 5; my $number; while( $number >= $lower_limit && $number <= $upper_limit) { $number = <>; }
In reply to Re: Perl script asking question and staying in a loop
by starX
in thread Perl script asking question and staying in a loop
by TheBigAmbulance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |