- or download this
use strict;
use warnings;
...
my %barcode_hash = map { $_ => $data } 1 .. $size;
print "end\n";
- or download this
...
our %barcode_hash = map { $_ => $data } 1 .. $size;
...
- or download this
use strict;
use warnings;
...
printf "%0.03f seconds\n", time - $start_time;
- or download this
perl timeit.pl perl test.pl
my %big_hash: 2.726 seconds
our %big_hash: 1.351 seconds