Help for this page

Select Code to Download


  1. or download this
    while(<>) {
            $line = chomp;
            $count++ if ($line =~ /foo/);
    }
    print $count;