Help for this page

Select Code to Download


  1. or download this
    my $res = $dbh->selectall_arrayref(<<'SQL');
     SELECT id, title FROM tbl_articles
    ...
        print "$_->[0]:\n";
        timethis(100, $_->[1]);
     }
    
  2. or download this
     Using string subst:
     timethis 100: 15 wallclock secs ( 2.33 usr +  0.78 sys =  3.11 CPU)
     Using placeholders:
     timethis 100: 15 wallclock secs ( 2.45 usr +  0.97 sys =  3.42 CPU)