When I run a syntax check on my script through PerlEditor Lite I get the following errors:

"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:
use UCSExt;
I looked in the perl\lib directory and the UCSExt.pm file is there.

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:
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 );
Here are the lines of code referred to in the error messages:
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");
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.

Thanks for any help.

Chris


In reply to Don't understand error messages by chriso

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.