-
Notifications
You must be signed in to change notification settings - Fork 577
Blessed glob returned from function loses blessing #395
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
Comments
From @mjdominusI create a blessed glob in a function and return it to the caller. Demo program: -----------------BEGIN PROGRAM--------------------------------------------- sub mkglob { -----------------END PROGRAM --------------------------------------------- The `ref' call inside the function (labelled `1:') yields `Snonk!' However, the `ref' call outside the function (labelled `2:') yields Using Devel::Peek, you can see that the glob is actually copied on This behavior persists from at least 5.005_02 until at least 5.00557. Perl Info
|
From @mjdominus
The problem may be in the assignment operation, not the function my $glob = *X; |
1 similar comment
From @mjdominus
The problem may be in the assignment operation, not the function my $glob = *X; |
From @gbarrBut this is tru for any type, eg replace with my $scalar = "value"; bless \$scalar, ... and you will see the same result. ie that the bless-ing is not On Wed, Aug 18, 1999 at 01:27:42PM -0400, Mark-Jason Dominus wrote:
-- |
Migrated from rt.perl.org#1230 (status was 'resolved')
Searchable as RT1230$
The text was updated successfully, but these errors were encountered: