[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: Re: smart match: array ~~ hash
From: "Rafael Garcia-Suarez" <rgarciasuarez () gmail ! com>
Date: 2007-11-30 13:59:36
Message-ID: b77c1dce0711300559x26c6de04tf69738f956068c29 () mail ! gmail ! com
[Download RAW message or body]
On 28/11/2007, Dmitry Karasik <dmitry@karasik.eu.org> wrote:
> As confirmed that that was a bug, and according to my best interpretation of
> http://perlcabal.org/syn/S03.html#Smart_matching, namely,
>
> > Array ~~ Hash - hash slice existence - X.contains(any @$_)
...which means, IIUC, that at least one element of the array is a key
in the hash.
> I've cooked up a patch that fixes this both in code and docs.
> The patch is against RC2, please check if it does the right thing.
Thanks, applied, with more tests.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic