Hi stevieb, that's odd!
Same results here on 5.22 and 5.8.8 under darwin. It seems to be an issue with variable interpolation by Benchmark:
Output:use strict; use warnings; use Benchmark qw(:all); cmpthese( 1, { p_read => "p_read('a.txt')", }); sub p_read { my $fname = shift; print "$fname\n"; } __END__
a.txt ...
In reply to Re: Benchmark cmpthese() removing '.' char from input param
by 1nickt
in thread Benchmark cmpthese() removing '.' char from input param
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |