Help for this page

Select Code to Download


  1. or download this
    my %count;
    @count(qw/@@@ *** !!!/) = (0) x 3;
    
  2. or download this
        if ( "!!!" eq substr $line => 0, 3 ) {
            $count{'!!!'}++;
            print OUTFILE $line;
        }
    
  3. or download this
    printf "Total errors for %s: %d\n", $_, $count{$_}
        for keys %count;