http://www.perlmonks.org?node_id=624443


in reply to regex substring negation

I'm confused. Isn't a regex which negates a substring just a negative regex?

As in, if you want to test that your string doesn't contain "foo", you just do !~ /foo/?

Or indeed, use the substring function itself.

--
Nobody says perl looks like line-noise any more ...
kids today don't know what line-noise IS.
--