develooper Front page | perl.perl5.porters | Postings from October 1999

Re: Make IO::Socket::INET pick up LocalAddr from the ENVIRONMENT

Thread Previous | Thread Next
From:
M.J.T. Guy
Date:
October 26, 1999 05:22
Subject:
Re: Make IO::Socket::INET pick up LocalAddr from the ENVIRONMENT
Message ID:
E11g5c9-0005Px-00@taurus.cus.cam.ac.uk
Gisle Aas <gisle@aas.no> wrote
> I have had several requests for a way to control the 'LocalAddr' used
> for connections made by LWP.  I think the best way to deal with this
> is to make is configurable at the IO::Socket::INET level.  In this
> patch I have chosen to make it default from an environment variable.
> Another approach could be to provide a class method or simply a global
> variable like $IO::Socket::INET::DEFAULT_LOCAL_ADDR.  Any other
> thoughts or suggestiong for a better environment variable name?

a)   I don't see the need to do this at the IO::Socket level.

b)   If it is done, a global variable is preferable to an environment
     variable.

c)   Shouldn't environment variables used by Perl have names starting
     PERL... ?


Mike Guy

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About