Useless "local $_" in a perlfaq3 example
Rafael Garcia-Suarez [Tue, 30 Sep 2003 12:47:13 +0000 (12:47 +0000)]
p4raw-id: //depot/perl@21391

pod/perlfaq3.pod

index 78f220a..8fd484f 100644 (file)
@@ -146,10 +146,8 @@ Here's a sample use of Benchmark:
   timethese($count, {
             'map' => sub { my @a = @junk;
                           map { s/a/b/ } @a;
-                          return @a
-                        },
+                          return @a },
             'for' => sub { my @a = @junk;
-                          local $_;
                           for (@a) { s/a/b/ };
                           return @a },
            });