Help for this page

Select Code to Download


  1. or download this
    my $ct = scalar grep { $_ eq 'at' } @s;
    
  2. or download this
    my $found;
    foreach ( @s ){
    ...
      $found = 1;
      last;
    }
    
  3. or download this
      my %h;
      $h{$_}++ for @s;
      warn "got " . ($h{at}||0) . " hits for 'at'";