in reply to Re: Re: "switch$ia" (Russ: Useless Benchmarking again)
in thread "switch$ia" but don't interpolate trailing "a"

<sheepish grin>
hehehe You're probably right.

So, in the spirit of further useless benchmarking:

use Benchmark; timethese( 10000000, { 5 => sub {my $R = 5;}, 6 => sub {my $R = 6;} });
results in:
5: 6 wallclock secs ( 6.61 usr + -0.03 sys = 6.58 CPU) @ 1519756 +.84/s 6: 6 wallclock secs ( 5.89 usr + 0.08 sys = 5.97 CPU) @ 1675041 +.88/s
As you can see, it is slightly faster to assign a 6 than a 5, so I will use 6's more often from now on... :-)
</sheepish grin>

Russ
Brainbench 'Most Valuable Professional' for Perl