projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add test for grep() and wantarray
[p5sagit/p5-mst-13.2.git]
/
pod
/
perlsub.pod
diff --git
a/pod/perlsub.pod
b/pod/perlsub.pod
index
c83f2da
..
347d2f8
100644
(file)
--- a/
pod/perlsub.pod
+++ b/
pod/perlsub.pod
@@
-608,7
+608,7
@@
If you're planning on generating new filehandles, you could do this:
sub openit {
my $name = shift;
local *FH;
- return open (FH, $path) ? \*FH : undef;
+ return open (FH, $path) ? *FH : undef;
}
Although that will actually produce a small memory leak. See the bottom