Your code seems to make a range check, whether the value is between 2.5 and 45.5, but only if $N is smaller than 300. If $N is greater than 300, $MIN_TOL and $MAX_TOL seem to be undefined (if you haven't set default values somehwere else in the surrounding code). If not, the value is flagged if it is greater or lower than UNDEF aka 0, which is true for all values except 0.
If you turn on warnings (if you haven't already, do so), perl would warn you about such problems.
In reply to Re: Stuck Value
by jethro
in thread Stuck Value
by halligalli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |