Oh Estimable Monks, please shine favor on a lowly accolyte,

I am trying to use Net::Ping in the simplest possible way and the utility doesn't "see" a local system on the LAN that I can manually ping. I am using the ActiveState 5.6 on Windows NT 4.0 SP 6a and I'm pinging a Redhat Linux 6.2 system.

Here is the code: use Net::Ping; $push_ip_address="192.168.0.27"; print "$push_ip_address\n"; #just for grins $p = Net::Ping->new(); print "OK \n" if $p->ping("$push_ip_address",2); print "Pval $p\n"; #just to see print "Nuts!! \n" unless $p->ping($push_ip_address,2); $p->close(); Here is the result: D:\test>perl testftp.pl 192.168.0.27 Pval Net::Ping=HASH(0x1b9f08c) Nuts!! done So it doesn't appear to see the system. Yet, wise ones... D:\test>ping 192.168.0.27 Pinging 192.168.0.27 with 32 bytes of data: Reply from 192.168.0.27: bytes=32 time<10ms TTL=255 Reply from 192.168.0.27: bytes=32 time=10ms TTL=255

My fingers can see the node... woe is me.

Would you please advise as to my shortcomings?

Many that they are.

Diskcrash


In reply to Perfectly Poor Ping Problem by diskcrash

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.