Either use string eval
if( eval "require $isa" ) {
or block eval (adding ".pm")
eval { require "$isa.pm" } unless ($@) { ... }
(Update: fixed my reply several times... now it should finally be ok :)
In reply to Re^3: Perlfect search can't locate installed module DB_File.pm.
by almut
in thread Perlfect search can't locate installed module DB_File.pm.
by dbmathis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |