Hi All,
I'm calling sub routines based on a couple of variables. At the moment I'm using eval, but I get the feeling there are other, probably more efficient ways of doing it.
my $subtext = "&subby${var1}_text_$var2();";
eval $subtext;
Thoughts?
I'm trying to keep things as efficient as possible so I'll be benchmarking every method we can come up with.
Lyle
Update: Thanks guys, I check these out and see what works best for me... Benchmarks show eval slowest by far. BrowserUK's fasterest, though I'll probably use TGI's dispatch table solution. Couldn't get rhesa's to work with benchmarks timethis??