in reply to using next in a nested foreach()

Nobody mentioned the obvious (to me).

Move the $one =~ m/.../ line outside of the inner for-loop. There's no reason to do the same thing over and over and over.


Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart