Help for this page

Select Code to Download


  1. or download this
    sub print_as_lines
    {
      map { print "$_\n" } @_;
    }
    
  2. 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
    
  3. or download this
    <lanIP>
    
    192.168.42.7
    
    </lanIP>
    
  4. 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
    
  5. or download this
    sub unique_network 
    {
    ...
    }
    
    print_address( unique_network($servers) );