I just need a small perl script that can choose a specific IP to use from the IP interfaces on a Linux box for use with WWW::Mechanize for downloading images. So lets say I have:
I need to be able to pick one of them to use with WWW::Mechanize->get. This script must be compatible to work with perl threads module. So if I have 4 threads running each thread can choose a different ip to use with Mechanize.