Access to the LWP :: UserAgent base object and proxy settings. LWP :: Simple exports the variable $ua
so you can do this:
use LWP :: Simple qw ($ ua get);
$ ua-> proxy ('http', 'http://myproxy.example.com');
my $ content = get ('http://www.example.com/');
source
share