in reply to Use proxy in perl script

Unless you want to mess with environment variables, try $agent->proxy('http', 'http://109.191.37.193:3128/');, and set the env_proxy key to zero. You can also delete that key, but explicitly setting it to zero (which is the default value) serves as a good reminder that you are not using environment variables.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James