[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000124.001] Refcount problem
Tom Christiansen writes:
>
> >I don't know where I picked up the habit of using \*FH (I distinctly
> >remember reading it *somewhere* in the docs, but I've been unable to
> >find where that was.)
>
> It's because at one point, use strict require \*FH not *FH, so people
> started using the former. In fact, at once point, returning the local \*FH
> worked, too. But then that got changed, and use strict was fixed. I don't
> know any reason beyond blessing to use \*FH.
At some point of Perl history returning globs from subroutines was
just asking for trouble. Almost nothing worked.
I think I have some mindblocks left from this time. I still cannot
make myself return *GLOB if returning \*GLOB works (as it should). It
does no help that \*GLOB is a scalar, not some obscure aggregate of
heavy magical things...
Ilya
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]