Permalink
Browse files

rakudo can interpolate variables now

  • Loading branch information...
1 parent 25bf84b commit a797ab867e99e2f38e4cc26bd22e957c05bb4021 @perlpilot committed Jul 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/{Benchmark.pm → Benchmark.pm6}
@@ -10,7 +10,7 @@ my sub time_it (Int $count where { $_ > 0 }, Code $code) {
}
multi sub timethis (Int $count, Str $code) is export {
- my $routine = eval "sub \{ {$code} \}";
+ my $routine = eval "sub \{ $code \}";
return time_it($count, $routine);
}

0 comments on commit a797ab8

Please sign in to comment.