Help for this page

Select Code to Download


  1. or download this
    my $c;
    for ( my $i = 0; $i < length($string); $i++ ) { 
        $c = substr( $string, $i, 1);
    }
    
  2. or download this
    $string is 3000 bytes
    Benchmark: running for, split, each for at least 10 CPU seconds...
    ...
         
    +16%
    
  3. or download this
    use Benchmark;
    my $string = "1234567890" x 5000 ;
    ...
                 
                  }});