Hello PilotinControl,
What is in $range? If it’s a single integer, then your test will be:
if ($range >= 300 && $range <= 400)
But if $range contains a string such as 310-395, you have two options:
my ($min, $max) = split /-/, $range; if ($min >= 300 && $min <= 400 && $max >= 300 && $max <= 400)
Hope that helps,
Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Match Numeric Range
by Athanasius
in thread Match Numeric Range
by PilotinControl
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |