New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refcount problem #1072
Comments
From eivind@dev1.hs.yes.noThe following snippet of perl shows what I believe to be a refcount problem. #!/usr/bin/perl -w use strict; # Perl Info
|
From @gsarOn Mon, 24 Jan 2000 14:49:39 +0100, EE wrote:
local(*FOO) has always localized the contents of *FOO (the GvGP in Thus the above is akin to: if (1) { So I don't think this can be easily fixed without breaking other Sarathy |
From @gsarOn Tue, 25 Jan 2000 13:40:16 PST, I wrote:
Oops, I meant to say "print { $retval->{GP} }" in both places. Sarathy |
From [Unknown Contact. See original ticket]
I believe that the standard way to deal with this has been to use --tom |
From @gsarOn Tue, 25 Jan 2000 14:56:12 MST, Tom Christiansen wrote:
Yes, *FH is already a kind of a reference [*], so returning \*FH is like [*] Except that it refers to more than one kind of thingy at the same Sarathy |
From [Unknown Contact. See original ticket]On Tue, Jan 25, 2000 at 02:56:12PM -0700, Tom Christiansen wrote:
I don't know where I picked up the habit of using \*FH (I distinctly When I discovered this, I thought I was returning a locked filehandle,
This is the solution I used to work around the problem once I Eivind. |
From [Unknown Contact. See original ticket]
It's because at one point, use strict require \*FH not *FH, so people --tom |
From [Unknown Contact. See original ticket]Tom Christiansen writes:
At some point of Perl history returning globs from subroutines was I think I have some mindblocks left from this time. I still cannot Ilya |
Migrated from rt.perl.org#2025 (status was 'resolved')
Searchable as RT2025$
The text was updated successfully, but these errors were encountered: