So your eval "use $object_class"; is effectively trying to benchmark nothing except the eval overhead itself - which in this case is efectively nothing.
use is a declaration - require is a function - confusingly both are in the functions listed in chapter 3 of the camel book.
I would thus suspect that eval "use $object_class"; is actually wrong.
+++++++++++++++++
#!/usr/bin/perl
use warnings;use strict;use brain;
In reply to Re: use vs. require in string eval?
by leriksen
in thread use vs. require in string eval?
by lachoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |