I consider myself a true novice of Perl and wanted to know how one may find what functions/commands each perl module contains. I am tired of going to
http://search.cpan.org/~maxschube/Nm...ner/Scanner.pm
and reading through stuff and alot of times they dont go over all the functions that the module may contain. An example "get_host_list,get_next,hostname":
Code:
use Nmap::Scanner;
my $scan = Nmap::Scanner->new();
$scan->add_target('localhost');
$scan->add_target('host.i.administer');
$scan->add_scan_port('1-1024');
$scan->add_scan_port('31337');
$scan->tcp_syn_scan();
$scan->noping();
my $results = $scan->scan();
my $hosts = $results->gethostlist();
while (my $host = $hosts->get_next()) {
print "On " . $host->hostname() . ": \n";
my $ports = $host->get_port_list();
while (my $port = $ports->get_next()) {
print join(' ',
'Port',
$port->service() . '/' . $port->portid(),
'is in state',
$port->state(),
"\n"
);
}
}
its a bit confusing. Any help would be most appriciated.