diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-03-24 11:42:18 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-03-24 11:42:18 +0100 |
commit | da9849c509b34ed24c215ecae6a458108a733936 (patch) | |
tree | 8a73526bdd32ae661693bef351d296a095fafae9 /pod | |
parent | 07edf4976478e131431ffbf2f9637678422be875 (diff) | |
download | perl-da9849c509b34ed24c215ecae6a458108a733936.tar.gz |
Specify that the behaviour of $foo ~~ Range should only depend on the RHS
(and not from the value being checked, as Zefram remarks)
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlsyn.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 8dfe75c1af..dbaa7a9d30 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, |