http://qs321.pair.com?node_id=1157559


in reply to Benchmark cmpthese() removing '.' char from input param

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:

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__
Output:
a.txt ...

The way forward always starts with a minimal test.