in reply to Re: Unpredicted late destruction
in thread Unpredicted late destruction
Not only that, when I change "return $x" to "return $fn", $x is destroyed Before the body of the for() loop, which disproves my contention that this is happening to All lexically scoped variables in functions called in a for() LIST.
So now I guess I'd just like an idea of why filehandles aren't closed when I'd expect them to be :)
Sorry about the variable names.
Thanks,
Alan
|
|---|