I don't know what's happening, but it is always wise to check $@ after an eval; that may give you some idea of what's going on. Alternatively you can do something like this:
or even just thiseval "require $val; 1" or die $@;
since the require should return true (the first form is arguably clearer, though).eval "require $val" or die $@;
the lowliest monk
In reply to Re: Require all modules in lib ?
by tlm
in thread Require all modules in lib ?
by ZlR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |