http://www.perlmonks.org?node_id=997776


in reply to Parsing Logs

What is exactly the <my-regex-goes-here($id)>? You probably could combine all ids in one regexp and that way avoid inner foreach loop if you don't care which id matched (and even if you do care, simply use parens in regexp and $1).