in reply to Require all modules in lib ?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Require all modules in lib ?
by ZlR (Chaplain) on Jun 07, 2005 at 12:07 UTC | |
by tlm (Prior) on Jun 07, 2005 at 12:44 UTC | |
by ZlR (Chaplain) on Jun 07, 2005 at 13:17 UTC |