To fix this error, I had to "protect" the three lines: next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.0$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.255$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /^([0-9A-F]{2}([:-]|$)){6}$/i); ... by putting this if-clause around them: if (ref($nmap_host_ref->{'address'}) ne 'ARRAY') { next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.0$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.255$/); next if ($nmap_host_ref->{'address'}->{'addr'}...
To fix this error, I had to "protect" the three lines: next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.0$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.255$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /^([0-9A-F]{2}([:-]|$)){6}$/i); ... by putting this if-clause around them: if (ref($nmap_host_ref->{'address'}) ne 'ARRAY') { next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.0$/); next if ($nmap_host_ref->{'address'}->{'addr'} =~ /\.255$/); next if ($nmap_host_ref->{'address'}->{'addr'}...