I'm confused as to what the "two-argument" form of m// is. Am I missing something? > No, you have to loop manually. > > for my $key ( keys %h ) { > if ( m/$s/$key/ ) { > $n = $h{$key}; > } > } >