BTW, in doubt and if you don't believe it you may write a test:

#!/usr/bin/env perl use strict; use warnings; use Data::Validate::IP qw(is_ipv4); use Test::More tests => 2; my $perlmonks = q(209.197.123.153); my $nowhere = q(192.168.10.991); ok( defined( is_ipv4($perlmonks) ), qq(ipv4 $perlmonks) ); ok( defined( is_ipv4($nowhere) ), qq(ipv4 $nowhere) ); __END__ karls-mac-mini:playground karl$ ./ip.pl 1..2 ok 1 - ipv4 209.197.123.153 not ok 2 - ipv4 192.168.10.991 # Failed test 'ipv4 192.168.10.991' # at ./ip.pl line 12. # Looks like you failed 1 test of 2.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help


In reply to Re^5: Net::Ping 2.63 Failing by karlgoethebier
in thread Net::Ping 2.63 Failing by g_speran

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.