… | |
… | |
942 | our @REGISTRY; |
942 | our @REGISTRY; |
943 | |
943 | |
944 | our $WIN32; |
944 | our $WIN32; |
945 | |
945 | |
946 | BEGIN { |
946 | BEGIN { |
947 | my $win32 = ! ! ($^O =~ /mswin32/i); |
947 | eval "sub WIN32(){ " . (($^O =~ /mswin32/i)*1) ." }"; |
948 | eval "sub WIN32(){ $win32 }"; |
948 | eval "sub TAINT(){ " . (${^TAINT}*1) . " }"; |
|
|
949 | |
|
|
950 | delete @ENV{grep /^PERL_ANYEVENT_/, keys %ENV} |
|
|
951 | if ${^TAINT}; |
949 | } |
952 | } |
950 | |
953 | |
951 | our $verbose = $ENV{PERL_ANYEVENT_VERBOSE}*1; |
954 | our $verbose = $ENV{PERL_ANYEVENT_VERBOSE}*1; |
952 | |
955 | |
953 | our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred |
956 | our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred |
… | |
… | |
1337 | so on. |
1340 | so on. |
1338 | |
1341 | |
1339 | =head1 ENVIRONMENT VARIABLES |
1342 | =head1 ENVIRONMENT VARIABLES |
1340 | |
1343 | |
1341 | The following environment variables are used by this module or its |
1344 | The following environment variables are used by this module or its |
1342 | submodules: |
1345 | submodules. |
|
|
1346 | |
|
|
1347 | Note that AnyEvent will remove I<all> environment variables starting with |
|
|
1348 | C<PERL_ANYEVENT_> from C<%ENV> when it is loaded while taint mode is |
|
|
1349 | enabled. |
1343 | |
1350 | |
1344 | =over 4 |
1351 | =over 4 |
1345 | |
1352 | |
1346 | =item C<PERL_ANYEVENT_VERBOSE> |
1353 | =item C<PERL_ANYEVENT_VERBOSE> |
1347 | |
1354 | |