3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use Net::Whois::RIPE::Object;
$object = new Net::Whois::RIPE::Object;
$object->debug(1);
while ($line = $whois_socket->get()) {
($attribute,$value) = ($line =~ /^(.+?):\s+(.+)$/);
next unless $attribute;
$object->add($attribute,$value);
}
$object->success || die;
foreach $attribute ($object->attributes()) {
foreach $value ($object->$attribute()) {
printf "%s: %-s\n", $attribute, $value;
}
}
print $object->content; # raw content from whois server
1
2
3
Name "main::whois_socket" used only once: possible typo at ./whois.pl line 9.
expecting a handle at ./whois.pl line 5
Can't call method "debug" on an undefined value at ./whois.pl line 6.
use strict;
3 Einträge, 1 Seite |