X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq7.pod;h=0299c2d8934a92a29de5ed21e4e2f9ac49c1acac;hb=438cc6089d922e42fd6635c1b8212ad034402745;hp=8040f192b22133d45f8f8d4fe8b7147bda02139c;hpb=a6dd486b7feb5918da837e5ad585c8ce954f9bbf;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq7.pod b/pod/perlfaq7.pod index 8040f19..0299c2d 100644 --- a/pod/perlfaq7.pod +++ b/pod/perlfaq7.pod @@ -397,7 +397,7 @@ they'll still work properly under C. For example: If you're planning on generating new filehandles, you could do this: sub openit { - my $name = shift; + my $path = shift; local *FH; return open (FH, $path) ? *FH : undef; } @@ -560,8 +560,8 @@ In summary, local() doesn't make what you think of as private, local variables. It gives a global variable a temporary value. my() is what you're looking for if you want private variables. -See L and L for excruciating details. +See L and +L for excruciating details. =head2 How can I access a dynamic variable while a similarly named lexical is in scope?