chriso has asked for the wisdom of the Perl Monks concerning the following question:
"F:\perl\web\makequiz.cgi: Can't locate UCSExt.pm in @INC (@INC contains: F:\perl\web\ C:/Perl/lib C:/Perl/site/lib .) at F:\perl\web\makequiz.cgi line 6. Tue Jul 26 11:03:12 2005 F:\perl\web\makequiz.cgi: BEGIN failed--compilation aborted at F:\perl\web\makequiz.cgi line 6. Can't locate UCSExt.pm in @INC (@INC contains: F:\perl\web\ C:/Perl/lib C:/Perl/site/lib .) at F:\perl\web\makequiz.cgi line 6. BEGIN failed--compilation aborted at F:\perl\web\makequiz.cgi line 6."Here is line 6 in my script:
I looked in the perl\lib directory and the UCSExt.pm file is there.use UCSExt;
Also, when I execute the script from my browser, I get the following errors. I don't know if they are related or not:
"Error message: syntax error at sys:/perl/web/makequiz.cgi line 18, near " @options $nds " Global symbol "$nds" requires explicit package name at sys:/perl/web/makequiz.cgi line 18. Global symbol "$Ret" requires explicit package name at sys:/perl/web/makequiz.cgi line 19. Global symbol "$nds" requires explicit package name at sys:/perl/web/makequiz.cgi line 24. Global symbol "$nds" requires explicit package name at sys:/perl/web/makequiz.cgi line 27. Global symbol "$nds" requires explicit package name at sys:/perl/web/makequiz.cgi line 29."Here is some of my code:
Here are the lines of code referred to in the error messages:use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use strict; use UCSExt; use warnings; my ( @explain, @allanswers, @allquestions, $fullname, $anslength, @allselections, $file, $fname, $lname, $time, $reviewtime, $idinput, $id, $courselocation, $useripaddress, $questionno, @log, $clocktime, $log, $type, $value, @answers, $buttonname, %selections, @options $nds $Ret );
I appologize if this is more than one related problem. I don't know how to trouble shoot this since I've declared the variables and the UCSExt.pm module is where all the other modules are.line 18,19: @options $nds $Ret ); line 24: $nds = UCSExt->new("UCX:NWDir"); line 27: $nds->{"FullName"} = "nds:\\\\nsmtree\\nsm"; line 29: $nds->login ("jane", "password");
Thanks for any help.
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Don't understand error messages
by ikegami (Patriarch) on Jul 26, 2005 at 15:47 UTC | |
by chriso (Sexton) on Jul 26, 2005 at 16:40 UTC | |
by kwaping (Priest) on Jul 26, 2005 at 16:47 UTC | |
by ikegami (Patriarch) on Jul 26, 2005 at 16:50 UTC | |
by Codon (Friar) on Jul 26, 2005 at 17:01 UTC | |
by Anonymous Monk on Jul 27, 2005 at 13:56 UTC | |
|
Re: Don't understand error messages
by muntfish (Chaplain) on Jul 26, 2005 at 15:46 UTC |