http://qs321.pair.com?node_id=253107

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

#!/fellow/monks.pl

In a particular app, I'm using the `ipconfig` command to determine the IP address of a Windows machine. I'd like to use some perl module to do that, as I like the code to be portable to different OSs.

Can the wise ones point me to some code that will reveal the IP address(es) to me? Please note, I'm not doing a CGI, so using $ENV{REMOTE_ADDR} won't solve my problem.

Thanks!

#!/massyn.pl The early worm gets caught by the bird.