Help for this page
%patterns = ( 5 => { ... } } );
my @row = the data, without the record_id!; my @matching = (\%patterns); ... } # and now all the matching patterns are in @found_patterns # the code is untested and only intended as an example