- or download this
cmpthese( -2,{
list => sub { &list },
shiftit => sub { &shiftit },
} );
- or download this
use Benchmark 'cmpthese';
cmpthese(1, { tryit => sub { $save = \@_ }});
...
$save = \@_;
}
];
- or download this
cmpthese 3, { tryit => sub { push @save, [@_]; shift } };
print Dumper \@save;
...
],
[]
];