in reply to Re: negative regex without !~
in thread negative regex without !~

if ($string !~ /asdfasdf/) { ... } is equivalent to if (! $string =~ /asdfasdf/) { ... }
Not really. The latter parses as if ((! $string) =~ /asdfasdf/) {....} That's why not was invented... because the precedence of "!" is often far too high for most operations.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.