| 1 | |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use Class::Generate qw(class); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 3 | class 'Nmap::Scanner::Distance' => { | |
| 6 | qw(value $), | ||
| 7 | '&as_xml' => q! | ||
| 8 | |||
| 9 | return qq(<distance value="$value"/>); | ||
| 10 | |||
| 11 | ! | ||
| 12 | }; | ||
| 13 | |||
| 14 | =pod | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This class represents the hop distance nmap estimates this host is from | ||
| 19 | the host running the scan. | ||
| 20 | |||
| 21 | =head1 PROPERTIES | ||
| 22 | |||
| 23 | =head2 value() | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | 3 | 1; | |