Please restructure your code as follows:
if ($insql =~ m/.*~\w+~.*/) { print "MATCHED IT\n";} errmsg(1); die; };
You don't show the code of errmsg, but most likely it really returns a false value and thus prevents the die from executing.
In reply to Re^3: no exit! (return)
by Corion
in thread no exit!
by doc1623
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |