"Can't locate object method "new" via package "perl2UCS" (perhaps you forgot to load "perl2UCS"?) at sys:/perl/web/makequiz.cgi line 23."Here is the code heading I'm using:
The perl module Perl2UCS is located in the sys:perl\lib directory. What am I missing? Thanks for any help you can provide.#!/usr/bin/perl use lib 'sys:\perl\lib'; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use strict; use perl2UCS; 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 ); # Create NWDir UCX object $nds = perl2UCS->new("UCX:NWDir"); # Set tree and context to login $nds->{"FullName"} = "nds:\\\\tree\\container"; $nds->login ("username", "password"); print header;
In reply to "Can't locate object method" error by chriso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |