in reply to LWP and SOCKS proxy

Yes there is. Install the LWP::Protocol::socks module. Here's an example: http://mlawire.blogspot.com/2009/07/using-lwp-with-tor.html