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....
In reply to Re:(merlyn) Re: "use" file...
by demerphq
in thread "use" file...
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |