develooper Front page | perl.perl5.porters | Postings from September 2010

[PATCH] Add clarification and example to "Indirect Filehandles"section in perlopentut.pod

Thread Next
From:
A. Sinan Unur
Date:
September 9, 2010 02:24
Subject:
[PATCH] Add clarification and example to "Indirect Filehandles"section in perlopentut.pod
Message ID:
AANLkTinOvN81dYAXWZo3Ut+ay1MrNaOU9A=mY3Y1dKYr@mail.gmail.com
A recent discussion on Stackoverflow.com indicated to me that there is
some potential for confusion in the "Indirect Filehandles" section in
perlopentut.pod. See comments to
http://stackoverflow.com/questions/3661161/writing-a-macro-in-perl/3661239#3661239

The attached patch is my attempt at clarifying that indirect
filehandles are closed when there are no more references to them
rather than simply when the end of the current lexical scope is
reached. I also added an example of returning such a filehandle from a
subroutine.

I am not sure if this is the best way to word it, so I would
appreciate feedback.

The patch is attached.

-- Sinan
-- 
A. Sinan Unur
http://www.unur.com/sinan/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About