in reply to Why does NOT operator on match operator on string concatenation require two pairs of parens?

Not an answer to the immediate question, but I would usually write such a test as:

if ($inst !~ /lea/i) { # do things }

and I would always default to interpolation rather than concatenation so my test would look more like:

if ("$label$inst" !~ /\blea\b/i) { # do things }
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Why does NOT operator on match operator on string concatenation require two pairs of parens?
  • Select or Download Code