in reply to flip-flop interpolation
If either operand of scalar .. is a constant expression, that operand is considered true if it is equal (==) to the current input line number (the $. variable).So, if you're not using constants, you have to do the comparison yourself:
print if ($. == $i) .. ($. == $j); # The parentheses are optional.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: flip-flop interpolation
by Anonymous Monk on May 13, 2015 at 10:31 UTC | |
by SuicideJunkie (Vicar) on May 13, 2015 at 14:47 UTC | |
by johngg (Canon) on May 13, 2015 at 15:45 UTC | |
by Anonymous Monk on May 13, 2015 at 10:38 UTC |