Is there an opposite for the ~~ operator in Perl? I used it to map an element in an array like this:
my @arr = qw /hello ma duhs udsyyd hjgdsh/; print "is in\n" if ('duhs' ~~ @arr);
Prints is in . This is pretty cool because I don't have to iterate over the entire array and compare each record. My problem is that I want to do something if I do not have a match. I could go to the else side, but I rather found the opposite for `~~ '
source share