in reply to Re: Use with variable
in thread Use with variable
If you're already going to eval, might as well just do:
my $mod = "Digest::MD5"; eval "use $mod";
and avoid calling import yourself...
And don't forget to check $@...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use with variable
by Aristotle (Chancellor) on Sep 08, 2004 at 22:11 UTC |