Help for this page

Select Code to Download


  1. or download this
       $count++ while $text =~ /$gene/g; # Count number of instances
    
  2. or download this
    $count = () = $text =~ /$gene/g;
    
  3. or download this
    my $p=0; 
    ++$count while $p = 1+index( $text, $gene, $p );