in reply to Re: Perlfect search can't locate installed module DB_File.pm.
in thread Perlfect search can't locate installed module DB_File.pm.

Thanks almut, that fixed the test senario but the perl module require in the indexer.pl still fails to find the module. Any ideas?

After all this is over, all that will really have mattered is how we treated each other.
  • Comment on Re^2: Perlfect search can't locate installed module DB_File.pm.

Replies are listed 'Best First'.
Re^3: Perlfect search can't locate installed module DB_File.pm.
by almut (Canon) on Jun 26, 2008 at 17:49 UTC

    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 :)

      Have the same problem, don't understand your solution. this goes where? in perl script trying to load DB_file? what is $isa set to, DB_File? thanks
        No you don't.