See update3 in my post above.
In reply to Re^3: Break perl foreach loop by ig in thread Break perl foreach loop by pvecchio