in reply to use vs. require in string eval?
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use vs. require in string eval?
by PodMaster (Abbot) on Mar 12, 2004 at 04:32 UTC | |
|
Re: Re: use vs. require in string eval?
by lachoy (Parson) on Mar 12, 2004 at 04:40 UTC |