Unable to install module using cpan

Hi,

I am unable to install module using cpan. It says 407 Proxy Authentication Required

I did setup proxy server and given username and password in .bashrc file and apt.conf file.

export http_proxy=http://username:password@proxyserver:portno/

However, still unable to install module. Please suggest.

Thanks

---------- Post updated at 08:32 AM ---------- Previous update was at 08:05 AM ----------

Ok got it myself working. Changed the proxy settings in cpan config.
o conf

Try to setup your CPAN to register the proxy and user/password

# perl -MCPAN -e shell
cpan[1]> o conf init /proxy/
...
 <http_proxy>
Your http_proxy? [] 
...
Your proxy user id? [] 
Your proxy password?
...
cpan[2]> o conf commit