Help for this page

Select Code to Download


  1. or download this
    use List::Util    qw( uniq );
    use Sort::Natural qw( natsort );
    ...
       my @hosts = natsort uniq @{ $data{ $ip } };
       say join "\t", $ip, @hosts;
    }
    
  2. or download this
    use Sort::Natural qw( natsort );
    
    ...
       my @hosts = natsort keys %{ $data{ $ip } };
       say join "\t", $ip, @hosts;
    }