in reply to How to list all network interfaces and their ip address in Linux
I think IO::Interface is what you want. Check out in particular the synopsis.