No my.use vars qw/$myvar/;
Don't declare it as lexical, because it won't be in scope when you're actually running the benchmarked code. Or rather when Benchmark is running your code.
In reply to Re: Help using Benchmark.pm
by btrott
in thread Help using Benchmark.pm
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |