Hi,

I'm very new to the Perl Scene...I have an application that was developed
for Perl TK and we are now trying to convert it for use through the web.

I can pass the info from a web form to the script, but when the script runs,
it says it can't find the modules I am calling. How do I tell where it's
looking for the modules? Or how do I tell it to look in a specific place? I
tried declaring the @INC array with the directory locations, but it didn't
work either.

Any help or direction would be appreciated.

Here's the error:

"Can't locate Spreadsheet/ParseExcelSimple/Simple.pm in @INC (@INC contains:
.) at C:\Inetpub\VACWEB\cgi-bin\vac02b.pl line 7.
BEGIN failed--compilation aborted at C:\Inetpub\VACWEB\cgi-bin\vac02b.pl
line 7."

Here's the code snippet:

#!/usr/bin/perl -w
#!/perl/bin -w

###########################################################
# main
###########################################################
   use Spreadsheet::ParseExcelSimple::Simple;
   use strict;
   our $bad_news;
   our @acctparts;
   our $return_this;
   #our ($call_type,$acct_or_sheetname,$columns) = @_;

   read(STDIN, $data, $ENV{"CONTENT_LENGTH"});

   our $call_type;
   our $acct_or_sheetname;
   our $columns;
   our $submit;

($trash,$call_type,$trash,$acct_or_sheetname,$trash,$columns,$trash,$submit)
= split /=|&/,$data;


   if ($call_type eq "single")   {
      $return_this = &validate_one_code($acct_or_sheetname);
#     &validate_one_code($acct_or_sheetname);
   }
   else  {
      $return_this = &validate_spreadsheet ($acct_or_sheetname,$columns);
#     &validate_spreadsheet($acct_or_sheetname,$columns);
   }


Thanks,
Sam



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to