sumandas has asked for the wisdom of the Perl Monks concerning the following question:

I want to run proxy for cpan modules i.e "o conf http_proxy http://ip:port/" and capture the output through perl script.Can anyone help me with the code how to do it.

Replies are listed 'Best First'.
Re: running cpan proxy through perl script
by marto (Cardinal) on Feb 19, 2014 at 07:21 UTC

    What are you asking? How to use a proxy within perl scripts or how to run a proxy for cpan to use, and log proxy activity?

      running cpan proxy through perl script.
        so which one is that, the first thing or the second thing?
Re: running cpan proxy through perl script
by piscean (Acolyte) on Apr 02, 2014 at 08:39 UTC
    You should use  o conf init /proxy/

    It asks for http_proxy and ftp_proxy, where you can enter.

    Don't for get to type o conf commit after you make these changes.

    Comment if this has worked for you :)

      Where in your answer do you address the "proxy" part of the original question?