Re: not wanting something

2009-01-11 Thread Larry Wall
On Tue, Jan 06, 2009 at 04:41:30PM +0300, Richard Hainsworth wrote: Supposed I define regex digit { [0..9] } what is the negative? You need to be careful about what you mean here by negative. If you mean match a single character that is not in the list, then it is as Patrick said. By

not wanting something

2009-01-06 Thread Richard Hainsworth
Supposed I define regex digit { [0..9] } what is the negative? By analogy, it should be !digit but I cant find this in the Synopses (possibly missed the relevant section). if /[0..9]/ then the negative is /![0..9]/ Also, suppose I want a 'when' clause to fire when the test is *not* met.

Re: not wanting something

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 04:41:30PM +0300, Richard Hainsworth wrote: Supposed I define regex digit { [0..9] } Note that you probably want regex digit { [0..9] } Also, Perl 6 already provides a 'digit' rule by default, although it's digits in the Unicode sense as opposed to simply the

Re: not wanting something

2009-01-06 Thread Chas. Owens
On Tue, Jan 6, 2009 at 10:12, Patrick R. Michaud pmich...@pobox.com wrote: snip Also, Perl 6 already provides a 'digit' rule by default, although it's digits in the Unicode sense as opposed to simply the 0..9 sequence. snip Please tell me that Perl 6 isn't going to make that same error the