develooper Front page | perl.perl5.porters | Postings from June 2008

Re: AW: IO::Dir destructor

Thread Previous | Thread Next
June 2, 2008 07:54
Re: AW: IO::Dir destructor
Message ID:
Bram wrote:
>Why do you localise $. ?

What you localise is which filehandle it refers to, not the value,
of course.  You localise it in case something called from the destructor
accesses a filehandle, which would change which filehandle $. reports on.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About