- or download this
sub print_as_lines
{
map { print "$_\n" } @_;
}
- or download this
my $lanip = $server->{LanIP}; # no change on block entry
# oops, this will format for output before processing
$lanip .= "\n" unless $lanip =~ /\n$/; # no change if present
#oops, did not validate input
- or download this
<lanIP>
192.168.42.7
</lanIP>
- or download this
my $lanip = $server->{LanIP};
die "Value Error: not dotted quad notation->($lanip)" unless $lanip =~
+ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/;
my $lanip = $1; # now this house is clean
- or download this
sub unique_network
{
...
}
print_address( unique_network($servers) );