Patterns

2007-01-05 Thread Luke Palmer
I propose that we remove the following two lines from the smart match table in S03: HashAny hash entry existence exists $_{$x} Array Any array contains item* any($_) === $x These are the two lines with Any on the right side. I want to remove these so that we can

Re: Patterns

2007-01-05 Thread Larry Wall
On Fri, Jan 05, 2007 at 08:47:18PM +, Luke Palmer wrote: : I propose that we remove the following two lines from the smart match : table in S03: : :HashAny hash entry existence exists $_{$x} :Array Any array contains item* any($_) === $x : : These are the

Re: Patterns

2007-01-05 Thread Larry Wall
At the moment I'm leaning toward: $pattern.accepts($thing) $pattern.rejects($thing) and going the other way $thing ~~ $pattern $thing.match($pattern) $thing.subst($pattern) and most generally, something like: $thing.does($pattern) $thing.when($pattern) By the way,