Perhaps we can give better help if you'll give us some more information. Which version of perl: ActiveState, Strawberry, other?</fingers-faster-than-brain>? Which vers of Net::Ping? Do you have a server active at the IP shown? Anything else that might contribute to your problem?

I can't get any version of W32 I have avail (W2k w/5.10.1; vista w/5.8.n) to reproduce the message you're showing us. And what you're showing (as perhaps you know) would produce no output other than an error or warning.

Changing the IP to one of mine and adding (along with use warnings) the following (directly from the synopsis):

print "$host is alive.\n" if $p->ping($host); $p->close();

returns the expected result: namely that (my IP) is alive. Simply trying to print $p indicates that $p is (again, as expected) a reference to a hash:

$p: Net::Ping=HASH(0x15d5020)

And just in case the reference the "the synopsis" is a mystery, try:

perldoc Net::ping

hth ... to some small degree


In reply to Re: Ping error on WinXP by ww
in thread Ping error on WinXP by sgarc90

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.