get_gaurav2 has asked for the wisdom of the Perl Monks concerning the following question:

Can't locate Spreadsheet/WriteExcel/Big.pm in @INC I am trying to use spread sheets in a program and the class is not getting loaded . please share ur wisdom monks thanks

Replies are listed 'Best First'.
Re: error message not understood
by Corion (Patriarch) on Dec 21, 2008 at 09:47 UTC
Re: error message not understood
by oko1 (Deacon) on Dec 22, 2008 at 02:01 UTC

    In addition to other suggestions, here's one that can give you a bit more useful info:

    perl -MSpreadsheet::WriteExcel::Big -wle'print $Spreadsheet::WriteExce +l::Big::VERSION'

    This tells you if the module is installed - you'll get an obvious, comprehensive error if it's not - as well as showing you the version of the installed module. In other words, if it is installed and you're still having trouble, the version number will help you decide whether you need to update or (if you already have the latest version) if even the latest version doesn't do what you need it to do.


    --
    "Language shapes the way we think, and determines what we can think about."
    -- B. L. Whorf
Re: error message not understood
by matrixmadhan (Beadle) on Dec 21, 2008 at 14:58 UTC
    that seems to be a problem where the required perl modules are not available in the @INC array.

    Try adding the installation directory to use lib
      A way to check if you have the module installed is by trying loading module directly and see what happens. For example:
      perl -MSpreadsheet::WriteExcel -e1
      will be quiet if you have the module installed otherwise it will complain with a message like:
      Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: /etc/pe +rl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/p +erl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/lo +cal/lib/site_perl .).
      NOTE: The message above includes the current library search locations perl is aware of (in @INC). If the module was installed by standard means (cpan or perl Makefile.pl etc) it should be somewhere in your @INC (library paths) already.