Help for this page

Select Code to Download


  1. or download this
    # Hopefully this is never a routeable host
    is($p->ping("172.29.249.249"), 0, "Can't reach 172.29.249.249"
    
  2. or download this
    t/200_ping_tcp.t ..... 1/13 
    #   Failed test 'Can't reach 172.29.249.249'
    ...
    #          got: '1'
    #     expected: '0'
    
  3. or download this
      # Is the ultimate answer 42?
        is( ultimate_answer(), 42, "Meaning of Life" );
    
  4. or download this
    
    $p->ping($host [, $timeout]);
    
    Ping the remote host and wait for a response....the success flag will 
    +be 1 if the host is reachable and 0 if it is not...