[Perl] How to find IP address

Offer Kaye oferk at oren.co.il
Wed Oct 9 03:08:23 PDT 2002

> Hi!
> 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 ?

1. Have you searched CPAN (http://search.cpan.org)? There is a module there
that seems to have a method for what you want to do:

More information about the Perl mailing list