in reply to Re: foreach nightmare!
in thread foreach nightmare!

It's not necessary to change @well to scalar(@well), because the less-than operator imposes scalar contect on its operands already.

But in any case, your foreach rewrite is much better. :-)

    -- Chip Salzenberg, Free-Floating Agent of Chaos