- or download this
my $xp = XML::XPath->new(xml => $fpdomaininfo );
my $nodeset = $xp->find('//cidr-map');
...
# this prints nice list of ipaddresses
# 127.0.0.1:198.168.1.1:198.168.1.2
print "<hr><hr>" . __LINE__ . "<br>" . $ips_as_string . "<hr><
+hr>\n";
- or download this
my @ips = split /:/, $ips_as_string;
...
# 589
# $VAR1 = '
print "<hr><hr>" . __LINE__ . "<br>" . Dumper( @ips ) . "<hr><
+hr>\n";
- or download this
589
$VAR1 = '
- or download this
# this prints crap if XML in it !!!
for my $ip ( @ips ) { print "$ip<br>"; }