| 1 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 3 | ▶ | use Class::Generate qw(class); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 3 | class 'Nmap::Scanner::Address' => { | |
| 5 | qw(addr $ | ||
| 6 | addrtype $ | ||
| 7 | vendor $), | ||
| 8 | '&as_xml' => q!return qq(<address addr="$addr" ) . | ||
| 9 | qq(addrtype="$addrtype" ) . | ||
| 10 | qq(vendor="$vendor"/>);! | ||
| 11 | }; | ||
| 12 | |||
| 13 | =pod | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | This class represents an host address as represented by the scanning output from | ||
| 18 | nmap. | ||
| 19 | |||
| 20 | =head2 addr() | ||
| 21 | |||
| 22 | =head2 addrtype() | ||
| 23 | |||
| 24 | =head2 vendor() | ||
| 25 | |||
| 26 | =cut | ||