[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000124.001] Refcount problem
On Tue, 25 Jan 2000 14:56:12 MST, Tom Christiansen wrote:
>>local(*FOO) has always localized the contents of *FOO (the GvGP in
>>gutspeech). In fact, this is the behavior that makes local(*FOO)
>>also localize $FOO, %FOO, @FOO and the filehandle FOO.
>
>I believe that the standard way to deal with this has been to use
>*FH not \*FH. Notice how the examples in perldata on returning
>local handles do not use backslash.
Yes, *FH is already a kind of a reference [*], so returning \*FH is like
returning a reference to a reference.
[*] Except that it refers to more than one kind of thingy at the same
time.
Sarathy
gsar@ActiveState.com
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]