Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Suppose A snoopy.pl is a source file name. How to write a script which attempts to find out as much as it can about a particular subnet. You should be able to specify the subnet to the program as a command line parameter like snoopy.pl 140.160.138.0 255.255.255.0 the information gathered should be placed in a file in a form suitable for printing. thanks

Replies are listed 'Best First'.
Re: Need Hints
by mincus (Chaplain) on May 08, 2001 at 01:52 UTC
Re: Need Hints
by Tuna (Friar) on May 08, 2001 at 02:07 UTC
    Whoaaaa, you've got to be a bit more specific, here. What do you mean by "as much as it can about a particular subnet"? All valid hosts? Broadcast address? Network address? Try to go out on the network and see how many responses you get from devices sitting on a "particular subnet"? All of the above? None of the above?

    I think that you would be more successful in your search for help if you:

    1. Took a stab at it yourself, and posted the code that has you stumped.
    2. Outline your specifications more clearly.

    Also, you may want to check out NetAddr::IP and ipcalc