What the OP should do is put the regexes in a Perl module and unroll the loop. That way, he can group them so that groups of tests are skipped:
# strings containing "foo" if( /foo/ ){ return "food" if /food/; return "fool" if /fool/; return "foot" if /foot/; return "foo"; } -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/