chriso has asked for the wisdom of the Perl Monks concerning the following question:
"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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Can't locate object method" error
by gellyfish (Monsignor) on Aug 16, 2005 at 12:10 UTC | |
by chriso (Sexton) on Aug 16, 2005 at 12:38 UTC | |
|
Re: "Can't locate object method" error
by merlyn (Sage) on Aug 16, 2005 at 13:02 UTC | |
by Codon (Friar) on Aug 16, 2005 at 18:15 UTC | |
|
Re: "Can't locate object method" error
by anonymized user 468275 (Curate) on Aug 16, 2005 at 12:17 UTC |