in reply to Help using Benchmark.pm

use vars qw/$myvar/;
No my.

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.