Help for this page

Select Code to Download


  1. or download this
        while ($str =~ /searchword/g) {
            my $loc = tell($fh) - length($str) + pos($str);
            print "Found a match starting after $loc.\n";
        }