in reply to Finding the IP of a local box
On the command line, you would use ifconfig on the appropriate interface to get the IP address. Punching ifconfig into the CPAN search box results in Net::Ifconfig::Wrapper which provides a perl wrapper to ifconfig. I have never used this module myself, so I cannot comment on the quality and stability of it, I'm afraid.
Codewise, you would examine the hash returned by IFconfig('list','','','') to get the IP address of your internet facing network interface.