Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
why the use of the BEGIN block ? why not just assign the $ENV values at runtime?use IO::Socket::SSL; BEGIN { $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "IO::Socket::SSL"; $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; $ENV{PERL_LWP_ENV_PROXY}='http://127.0.0.1'; $ENV{HTTPS_DEBUG} = 1; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: BEGIN block
by Corion (Patriarch) on Oct 23, 2015 at 07:32 UTC | |
Re: BEGIN block
by Discipulus (Canon) on Oct 23, 2015 at 07:13 UTC | |
by Laurent_R (Canon) on Oct 23, 2015 at 07:33 UTC | |
by Discipulus (Canon) on Oct 23, 2015 at 07:41 UTC | |
Re: BEGIN block
by AnomalousMonk (Archbishop) on Oct 23, 2015 at 07:18 UTC | |
Re: BEGIN block
by Anonymous Monk on Oct 23, 2015 at 07:12 UTC |