Subject: | Net::DNS doesn't export Net::DNS::Resolver=HASH(0x810c6ec) |
I'm just picking up Perl, so this may be operator error. I have looked around at many Perl sites, but don't see any bugs like this one!
Thanks.
--- John Teller
=========================================
The error output:
"Net::DNS::Resolver=HASH(0x810c6ec)" is not exported by the Net::DNS module
Can't continue after import errors at test.pl line 5
BEGIN failed--compilation aborted at test.pl line 5.
=========================================
The script:
#!/usr/bin/perl
# Need this one for DNS lookups
use Net::DNS
my $res = Net::DNS::Resolver->new;
print $res->query('62.53.105.174');
print $res->query('google.com');
=========================================
OS:
FreeBSD zarkov 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
=========================================
perl -v output:
This is perl, v5.8.5 built for i386-freebsd-64int
=========================================
Installed p5 packages:
p5-Digest-HMAC-1.01
p5-Digest-SHA1-2.10
p5-Net-DNS-0.48