Help for this page

Select Code to Download


  1. or download this
      my %nu_hash=(); #why is this an empty hash? (is he storing patterns 
    +in a hash?)
    
  2. or download this
      my $sstr =""; #why is this an empty string?
    
  3. or download this
      for ( my $i = 0; $slen >= $i + $pl; $i++ ) {
         my $sstr = substr( $str, $i, $pl ); 
         $nu_hash{ $sstr }++; 
      }
    
  4. or download this
      for my $i ( 0 .. $slen - $pl ) {
         my $sstr = substr( $str, $i, $pl ); 
         $nu_hash{ $sstr }++; 
      }