John E. Malmberg [Thu, 13 Oct 2005 10:28:23 +0000 (06:28 -0400)]
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-ID: <
434E6F07.5020108@qsl.net>
p4raw-id: //depot/perl@25752
}
plan tests => 85;
+my $list_assignment_supported = 1;
+
+#mg.c says list assignment not supported on VMS, EPOC, and SYMBIAN.
+$list_assignment_supported = 0 if ($^O eq 'VMS');
+
+
sub foo {
local($a, $b) = @_;
local($c, $d);
# local() should preserve the existenceness of %ENV elements
ok(! exists $ENV{_A_});
ok(! exists $ENV{_B_});
-{
+
+SKIP: {
+ skip("Can't make list assignment to \%ENV on this system")
+ unless $list_assignment_supported;
my $d = join("\n", map { "$_=>$ENV{$_}" } sort keys %ENV);
local %ENV = %ENV;
is(join("\n", map { "$_=>$ENV{$_}" } sort keys %ENV), $d);