in reply to Re^12: scandns.pl
in thread scandns.pl

LOL

If I'm following you rightly; nothings changed. Your solution works for you, and mine, for me.

Oh well. Something for another day. I've got too many other, more important things to deal with ATM.

Thanks for taking the time to report your findings.

--Chris

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

Replies are listed 'Best First'.
Re^14: scandns.pl
by jdporter (Paladin) on Nov 16, 2013 at 01:20 UTC

    You can't say your version works unless you believe 209.197.123.666/29 is a valid IP address.

      ???

      When I feed it the number you posted into it. It throws an error.
      What did it do when you did it?

      --Chris

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

        No errors, though several warnings. I really don't believe you're using the code you posted.

        Again - using my fix instead of yours in sub validip, the program immediately exits with invalid address, as it ought.