When you're using the .. range operator in scalar context, you are actually getting the flip-flop behavior!
see Range Operators
I recommend combining two <= operators with &&, testing for inclusion after generating temporary lists is too much overhead. There is nothing closer to Python's 1 <= x <= 8 in Perl.
HTH
Cheers Rolf
In reply to Re: Range Operator in If Statement
by LanX
in thread Range Operator in If Statement
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |