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


in reply to Re: Re: Re: Optimizing quickly hash tables by checking multiple conditions
in thread Optimizing quickly hash tables by checking multiple conditions

my %newhash = map { $_ => $refdes_bom{$_} } grep { CPN($refdes_bom{$_}) and ITEM($refdes_bom{$_}) } keys %refdes_bom;
I have tried to make that basic routine you gave me work but failed as it will not process the keywords bar and foo. The error message I get is :
Undefined subroutine &main::CPN called at compal_test.pl line 37.
Am I missing the obvious basics here ?