Hi Brenda,
Try:
use lib ".";
use Telnet
That should do the trick for you.
Cheers,
Preston.
On 01/05/2007, at 8:42 AM, Brenda Powers wrote:
Hello:
I am attempting to access a module in another file and get an error
stating the module cannot be found.
My main module is simply:
require 'Telnet.pm';
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
The first line was created with the 'Require Module' tab. The
Telnet.pm file is in the same directory as my main module but
cannot be located.
What is the problem and how do I set an include path in ActivePerl
( if that is the problem )?
Thanks,
Brenda
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--
Preston de Guise
[EMAIL PROTECTED]
http://www.anywebdb.com
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs