Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URI::_foreign

Status
Not open for further replies.

jr8rdt

IS-IT--Management
Feb 9, 2006
59
US
Hello I created a perl script for telneting and it works fine on my windows box. but when I move the code to debian server it doesn't work. when I compile it I get

Can't locate object method "open" via package "URI::_foreign" at multibox_playback.pl line 33.

obviously I am using
#!/usr/bin/perl

use URI::telnet;

and line 33 is
$s[$i]->open("$t[$i]");

can anyone help? thanks
 
Is URI::telnet installed the same on both servers? Are there no other error messages?

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
- yes. no other error msg.
- how can I find that out in debian ? any keyword I can use to do find ? for my windows machine I use ActivePerl so I didn't have to install anything. it's already there.
 
Neither URI::telnet not URI::_foriegn are core modules nor are they on CPAN. Did you write those yourself?

Another thing, windows is not case sensitive, so if the module is: URI::Telnet windows will find it but operating systems that are case sensitive will not. Make sure you have spelled them correctly.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
no I didn't write this myself. I think URI::telnet is core. at least for ActivePerl. can somebody help.
 
I don't think so, ActiveState.com doesn't even list a URI-telnet module. Maybe you an copy the URI::telnet source over to your other server and use the 'lib' pragma to include it in @INC.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top