programming-examples/perl/SystemFunction/Benchmark timethis.pl
2019-11-15 12:59:38 +01:00

7 lines
156 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
use Benchmark;
my $howmany = 10000;
my $what = q/my $j=1; for (1..100) {$j*=$_}/;
timethis($howmany, $what);