Is there such a thing? The equivalent of a <= expr <= b, or in SQL parlance expr BETWEEN a AND b, where expr is evaluated only once
a <= expr <= b
expr BETWEEN a AND b
expr
There are a variety of ways to do that in Perl.
if( $a < $x and $x < $b ){ ... } ... if $a < $x and $x < $b;
use 5.10.1; if( $x ~~ [$a..$b] ){ ... } given( $x ){ when( [$a..$b] ){ ... } }
use 5.11.0; # development branch given( $x ){ ... when [$a..$b]; }