Help for this page

Select Code to Download


  1. or download this
    if (grep { $_ eq '111' } values %hash) {
      print 'found';
    }
    
  2. or download this
    foreach (keys %hash) {
      if ($hash{$_} eq '111') {
    ...
        last;
      }
    }
    
  3. or download this
    while (my ($k, $v) = each %hash) {
      if ($v eq '111') {
    ...
        last;
      }
    }