in reply to Re: using smartmatch for range matching
in thread using smartmatch for range matching

> in_range( $number, 1416, 1494 )

What module does it come from?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: using smartmatch for range matching
by ikegami (Patriarch) on Nov 26, 2023 at 22:56 UTC

    It's a trivial sub you can write yourself:

    sub in_range { $_[1] <= $_[0] <= $_[2] }