in reply to IP Address Quandry

There's good ol' ifconfig, or CPAN provides the Sys::HostIP module to call and parse ifconfig for you.

You can also poke the /proc/net/ directory.