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. What syntax should be used?

So how would I do
given {
   when ! /<digit>/ {say 'this is not a digit'} # this does not work

Since the ~~ operator is implied in the when, how do we get an implied !~~ operator?

By analogy with the
if/unless and while/until pairs, perhaps there should be an inverse for 'when'.

I cant think of an immediate opposite to 'when', but how about
although, yet, except, howbeit

Perhaps (less elegant): when not, elided to 'whent'

English doesnt seem to have a word that fits the opposite of
'when' <condition> <do this>
In other words something that would substitute for
'when the following is not true' <condition> <do this>

Reply via email to