Greetings jdporter.

So is you're assignment.

I take back most of my 1st reply to you.

If choosing you're assignment. CDIR masks will be rejected:

% ./scandns.pl 209.197.123.153/29 209.197.123.153 is an invalid address. %
Using my assignment (correct, or incorrect):
% ./scandns.pl 209.197.123.153/29 209.197.123.152 => renku.org => 4.79.43.173 209.197.123.153 => perlmonks.pair.com 209.197.123.154 => taidsaccount.com 209.197.123.155 => murphyworld.com => 208.91.197.132 209.197.123.156 => beetz.at 209.197.123.157 => best-kids-bedding-prices-online.com => best-kids-be +dding-prices-online.com has no A record 209.197.123.158 => lowest-prices-for-kids-bedding.com => lowest-prices +-for-kids-bedding.com has no A record 209.197.123.159 => no PTR record %
Not to sound too much the smart a$$. But before ridiculing someone for trying to help. Perhaps it best to test your own solution first?

Best wishes.

--Chris

#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;

In reply to Re^3: scandns.pl by taint
in thread scandns.pl by BlueLines

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.