projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
cd512f8
)
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
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfaq3.pod
b/pod/perlfaq3.pod
index
78f220a
..
8fd484f
100644
(file)
--- a/
pod/perlfaq3.pod
+++ b/
pod/perlfaq3.pod
@@
-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 },
});