( ( ($hash{AUTHOR} eq 'John' and $hash{PROFIT} eq '90%') or ($hash{AUTHOR} eq 'Matt' and $hash{PROFIT} eq '80%') ) and $hash{PUBLISHER} eq 'OReilly' ) #### %hash=( AUTHOR=> 'John', PROFIT=> '20%', PUBLISHER=> 'TMH', BOOK=> 'OPERATING SYSTEMS' )