in reply to Piping and Parallel Forks

Hi adambot maybe your code is better and more portable written using Net::DNS and Net::Ping? The first one lets does nslookup from inside perl code and the second one checks for connection to hosts (using icmp, udp and tcp "pings").

Replies are listed 'Best First'.
Re^2: Piping and Parallel Forks
by adambot (Acolyte) on Jan 05, 2012 at 15:58 UTC

    I didn't realize that those even existed. I'll look into those ASAP. Thanks for the tips on using the modules and for the link on multithreading net::Ping. I should be able to take it from here.

    is there a nmap module? (i didn't see one in core, and i am still learning where to look otherwise)
      is there a [...] module? (i didn't see one in core, and i am still learning where to look otherwise)

      To find modules, http://search.cpan.org, the search page of the Comprehensive Perl Archive Network, is sufficient most of the times. To install modules, running cpan Name::Of::The::Module from a terminal window / command prompt is sufficient most of the times -- unless you use ActivePerl, where things are a little bit different.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)