in reply to •Re: "use" file...
in thread "use" file...
Er. pfaut already said this. Sorry. :-)BEGIN { eval "use $string \@imports; 1" or die "Failed lazy use(): $@"; }
Update:
As merlyn said below. You need to be real careful that $string is completely under your control. You dont want to be reading it froma file for instance. At least not without some serious data cleaning first.
--- demerphq
my friends call me, usually because I'm late....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re:(merlyn) Re: "use" file...
by merlyn (Sage) on Feb 09, 2003 at 17:45 UTC |