Help for this page

Select Code to Download


  1. or download this
        package R;
        my $R = 10;
    ...
        my $subcode = "sub { local \$_; package R; print $R}";
        my $subref  = eval $subcode;
        &$subref;
    
  2. or download this
        > P.P.S. Here are my results with the correct code. Grep is
        > still faster than the other algorithms, so the original
        > question still stands (how can Perl execute an O(N) plus
        > an O(N log N) algorithm faster than a single O(N)?)