in reply to Regex negative word

With a negative look ahead assertion:

$_ = "cat dog"; print 'match' if /^(?!cat)/; print 'no match' unless /^(?!cat)/;

Prints:

no match

DWIM is Perl's answer to Gödel