Localise %ENV to fix test bug
[catagits/HTTP-Request-AsCGI.git] / t / 05env.t
index 1ab9ab7..0c31b5c 100644 (file)
--- a/t/05env.t
+++ b/t/05env.t
@@ -16,6 +16,7 @@ use Encode;
 
 plan tests => 11;
 
+local %ENV;
 $ENV{__PRESERVE_ENV_TEST} = 1;
 
 my $r = HTTP::Request->new( GET => 'http://www.host.com/cgi-bin/script.cgi/my%20path%2F?a=1&b=2', [ 'X-Test' => 'Test' ] );