| 1 | package Net::DAS::NO; | ||||||||||
| 2 | 2 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | sub register { | ||||||||
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | return { | ||||||||||
| 8 | 1 | tlds => [qw(no)], | |||||||||
| 9 | public => { | ||||||||||
| 10 | host => 'whois.norid.no', | ||||||||||
| 11 | port => 79, | ||||||||||
| 12 | }, | ||||||||||
| 13 | dispatch => [ undef, \&parse ], | ||||||||||
| 14 | }; | ||||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 4 | ▶ | sub parse { | ||||||||
|
Subroutine
parse: called CC=3 SCAR=11.4
Pod
undocumented
| |||||||||||
| 18 | 4 | chomp( my $i = uc(shift) ); | |||||||||
| 19 | 4 | ▶ | return 1 if uc($i) =~ m/IS AVAILABLE/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 2 | ▶ | return 0 if uc($i) =~ m/IS DELEGATED/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | return (-100); # failed to determine/parse | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 2 | 1; | |||||||||
| 25 | |||||||||||
| 26 | =pod | ||||||||||
| 27 | |||||||||||
| 28 | =head1 NAME | ||||||||||
| 29 | |||||||||||
| 30 | Net::DAS::NO - Net::DAS .NO extension. | ||||||||||
| 31 | |||||||||||
| 32 | See L<Net::DAS> | ||||||||||
| 33 | |||||||||||
| 34 | =head1 AUTHOR | ||||||||||
| 35 | |||||||||||
| 36 | Michael Holloway <michael@thedarkwinter.com> | ||||||||||
| 37 | |||||||||||
| 38 | =head1 LICENSE | ||||||||||
| 39 | |||||||||||
| 40 | Artistic License | ||||||||||
| 41 | |||||||||||
| 42 | =cut | ||||||||||