[Perl] How to find IP address

Oleg Kobets gwizard at clean-mail.net
Wed Oct 9 02:35:24 PDT 2002


I am trying to write a simple program that finds the current IP address on
ppp0 interface and mails it to me. I managed to do it with 2 scripts. One
bash that finds the current IP and other in perl that mails it to me. Now,
it's a cumbersome way to do a simple task and I am positive that there is a
function in perl that can return IP of interface, but I was unable to find
it using perldoc.

Any help ?

Oleg Kobets
Network Administrator
Breakthrough LTD.
03-6349922 Ext 26

"Black hole is God divided by zero"

More information about the Perl mailing list