Add test for grep() and wantarray
[p5sagit/p5-mst-13.2.git] / pod / perlsub.pod
index 2d3e666..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
@@ -758,7 +758,9 @@ to make the world a better place.
 
 Functions with a prototype of C<()> are potential candidates for
 inlining.  If the result after optimization and constant folding is a
-constant then it will be used in place of calls to the function.
+constant then it will be used in place of new-style calls to the
+function.  Old-style calls (that is, calls made using C<&>) are not
+affected.
 
 All of the following functions would be inlined.