Help for this page

Select Code to Download


  1. or download this
    for(@PORTS){
    ($KEY,$VAL)=split(/:/);
    ...
            $CONNTIME=$VAL if $KEY =~ /Connection time/;
            $CONNEDHOST=$VAL if $KEY =~ /Connected host/;
    ...
    
  2. or download this
    if ($KEY =~ /Host/) { $HOST = $VAL; }
    elsif ($KEY =~ /Connection time/) { $CONNTIME = $VAL; }
    elsif ($KEY =~ /Connected host/) { ... }
    ...
    
  3. or download this
    splice(@PORTS, 0, 3);