in reply to •Re: "use" file...
in thread "use" file...

The other approach is to
BEGIN { eval "use $string \@imports; 1" or die "Failed lazy use(): $@"; }
Er. pfaut already said this. Sorry. :-)

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