note
hv
<p>First, You haven't duplicated [Abigail-II]'s expression correctly; if you do so, it will work correctly:<code>
if ($line =~ /^(?:(?!throw).)*$/s) {
debug ("Doesn't contain throw");
}
</code></p>
<p>An alternative formulation, which I find slightly cleaner, is to recast it as a single negative lookahead:<code>
if ($line =~ /^(?!.*?throw)/) { ... }
</code></p>
<p>Hugo</p>
369307
369346