On Feb 23, 2009, at 11:16 PM, Larry Wall wrote:

    if $x ~~ $y ± $epsilon {...}

where infix:<±> turns the single value into a range for the smartmatch.


That's very cool. However, my first impression is that "$y ± $epsilon" maps more naturally to "any($y-$epsilon, $y+$epsilon)" than to a range.

Chris

Reply via email to