in reply to Does eval cause that much of a performance hit?
Hello,
You've posed your question with what seems like an assumption that your only options are eval or a big long conditional. The fact of the matter is, you have a multitude of other options. It sounds to me like you need to make an array of subroutines for your tests and execute those in your map:
my @tests = ( sub { ... }, sub { ... }, ); my @results = map $_->(), @tests;
Again, theres lots of other options besides even this one.
regards,
|
|---|