http://www.perlmonks.org?node_id=810165


in reply to Not able to load module though @INC contains it

Unless my eyes are playing tricks on me, it looks like you don't have that path in @INC after all.
(@INC contains: /export/home/bin ... ) ^^^
However your listing shows:
/export/home/inmabisa/bin> ls *.pm* ^^^

Replies are listed 'Best First'.
Re^2: Not able to load module though @INC contains it
by chilukuri_perl (Novice) on Nov 30, 2009 at 14:26 UTC
    Please forget about 'inmabisa'. I edited it.
      You edited what? ... In any event, it seems the problem is with your loadable module, not with @INC. So it's not terribly relevant, but having misleading information in the data you provided is certainly distracting.
        That is the homepath name. So I changed it.
        Leaving that aside..
        I found another .pm and PERL5LIB is set to that.
        Now getting the following error.
        /export/home/inmabisa/STAF/lib/perl510> ls libPLSTAF.so /export/home/inmabisa/STAF/lib/perl510> perl -e "use PLSTAF;" Can't load '/export/home/inmabisa/STAF/lib/perl58/libPLSTAF.so' for mo +dule PLSTAF: ld.so.1: perl: fatal: /export/home/inmabisa/STAF/lib/per +l58/libPLSTAF.so: wrong ELF class: ELFCLASS64 at /usr/perl5/5.8.4/lib +/sun4-solaris-64int/DynaLoader.pm line 230. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.