Net::Dict object fails 
Author Message
 Net::Dict object fails

So this is really strange...  I have a script that uses Net::Dict that
works if I do #!/usr/bin/perl but NOT if I do #/usr/local/bin/perl.  I
have to use the latter (local) because of a number of other libraries
that are found under /usr/local/lib and not /usr/lib..

Anyway, after doing some troubleshooting, I found that the problem with
Net::Dict is in the "new" subroutine when it tries to build the object:

---

   $obj = $self->SUPER::new(PeerAddr => ($host = $h),
              PeerPort => $arg{Port} || 'dict(2628)',
              Proto    => 'tcp',
              Timeout  => defined $arg{Timeout} ? $arg{Timeout} : 120
             ) and last;
 }

 return undef
        unless defined $obj;
---

For some odd reason, $obj is not getting defined here.  If I check the
value of $! right after that foreach loop, I get a "No such file or
directory" message. ?!?  I'm so confused.

Can anyone help?

Redhat 6.2
This is perl, v5.6.0 built for
i686-linux

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sat, 15 Feb 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ANNOUNCE: Net::Dict 2.00

2. ANNOUNCE: Net::DICT 0.02 available

3. ANNOUNCE: Lingua::EN::Dict v0.20 beta

4. ANNOUNCE: Lingua::EN::Dict v0.20 beta

5. Perl object - why does this fail?

6. Problem Installing Net::DNS Fails Test

7. libnet -- Net::NNTP test fails

8. Net::POP3 fails to login to mailbox if its empty

9. Failed connection to sftp server via Net::SFTP

10. Net::SFTP Fails, sftp OK

11. CPAN.pm problem, LWP: and Net::FTP: fail SLOWLY

12. CPAN - LWP, Net::FTP, lynx FAIL!

 

 
Powered by phpBB® Forum Software