Help for this page

Select Code to Download


  1. or download this
    foreach my $host_num ( 0..num_hosts()-1 ) {
        print "[$host_num] ", hostname_by_num($host_num), "\n" ;
    }
    
  2. or download this
    use Scalar::Util qw(looks_like_number);
    
    ...
    
        return exists $HOSTS[$num] ? $HOSTS[$num] : undef;
    }
    
  3. or download this
    sub choose_host {
        my $chosen_host;
    ...
        }
    }
    
  4. or download this
    sub ssh_string {
        my $host = shift;
    ...
            $host,
            domain();
    }