in reply to Match Numeric Range
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, |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Match Numeric Range
by Monk::Thomas (Friar) on Aug 18, 2015 at 21:35 UTC | |
Re^2: Match Numeric Range
by PilotinControl (Pilgrim) on Aug 18, 2015 at 11:56 UTC |