Add test for grep() and wantarray
[p5sagit/p5-mst-13.2.git] / pod / perlsub.pod
index c83f2da..347d2f8 100644 (file)
@@ -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