From: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date: Tue, 24 Mar 2009 10:42:18 +0000 (+0100)
Subject: Specify that the behaviour of $foo ~~ Range should only depend on the RHS
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da9849c509b34ed24c215ecae6a458108a733936;p=p5sagit%2Fp5-mst-13.2.git

Specify that the behaviour of $foo ~~ Range should only depend on the RHS

(and not from the value being checked, as Zefram remarks)
---

diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 8dfe75c..dbaa7a9 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -701,9 +701,8 @@ entries apply in those cases.
     Array   Regex     array grep               grep /$b/, @$a
     Any     Regex     pattern match            $a =~ /$b/
 
-    Num     Range[4]  in numeric range
     undef   Range[4]  always false
-    Any     Range[4]  in string range
+    Any     Range[4]  in range
 
     Any     Num       numeric equality         $a == $b
     Num     numish[5] numeric equality         $a == $b
@@ -716,7 +715,8 @@ entries apply in those cases.
  3 - If a circular reference is found, we fall back to referential equality.
  4 - a range is written EXPR..EXPR (using the C<..> range operator, but
      NOT the three-dot version C<...>, which will be treated as a boolean
-     operator)
+     operator). Numeric ranges will use numeric comparison: that is,
+     "4.5 ~~ 3..5" will be true.
  5 - either a real number, or a string that looks like a number
 
 The "matching code" doesn't represent the I<real> matching code,