The use is evaluated at compile time; try eval STRING instead of eval BLOCK:
BEGIN { # ... eval q{use $v}; die $@ if $@; }
In reply to Re: vars in use and require
by jcb
in thread vars in use and require
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |