To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 557
556  |  558
Subject: 
Re: Help with RCX.pm
Newsgroups: 
lugnet.robotics.rcx
Date: 
Fri, 14 Apr 2000 07:18:37 GMT
Viewed: 
1677 times
  
"Todd Lehman" <lehman@javanet.com> schrieb im Newsbeitrag
news:FsyM2E.KoA@lugnet.com...
In lugnet.robotics.rcx, Clemens Dorner writes:
when using the rcx.pm i only recieved the following error:
"can't find method new in module rcx"

it seems to me that perl finds the LEGO::RCX module but not its method
"new".
what am i missing?

thanks for any suggestions!

Clemens,

What are you using to invoke the new() constructor?  Are you using

   LEGO::RCX->new(...)

or

   LEGO::RCX->new("LEGO::RCX", ...)

or

   new LEGO::RCX(...)

or something else?

--Todd

i used the following:

use RCX;
$rcx = new RCX();

as described in the doc-file that comes with RCX.pm.

thanks,
Clemens



Message has 1 Reply:
  Re: Help with RCX.pm
 
(...) Aha! OK, sounds like the docs are out of sync with the code. IIRC, John renamed the module from RCX to LEGO::RCX a while back, which means that the new() constructor is actually now in the LEGO::RCX package and no longer in the RCX package. (...) (25 years ago, 14-Apr-00, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: Help with RCX.pm
 
(...) Clemens, What are you using to invoke the new() constructor? Are you using LEGO::RCX->new(...) or LEGO::RCX->new("LEGO::RCX", ...) or new LEGO::RCX(...) or something else? --Todd (25 years ago, 13-Apr-00, to lugnet.robotics.rcx)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR