develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #118525] B::svref_2object(\&foo)->GV does weird things with lexical subs

Thread Next
From:
Father Chrysostomos via RT
Date:
July 10, 2013 19:44
Subject:
[perl #118525] B::svref_2object(\&foo)->GV does weird things with lexical subs
Message ID:
rt-3.6.HEAD-2552-1373485437-1235.118525-15-0@perl.org
On Mon Jun 17 16:14:20 2013, LeonT wrote:
> On Tue, Jun 18, 2013 at 12:48 AM, l.mai@web.de
> <perlbug-followup@perl.org> wrote:
> > % perl -wE 'use feature qw(lexical_subs); use B (); my sub foo {}
> say B::svref_2object(\&foo)->GV'
> > The lexical_subs feature is experimental at -e line 1.
> > main=SCALAR(0x8865cd8)
> >
> > I'm not sure what this is supposed to do but $obj->GV should never
> return a
> > reference blessed into 'main'.
> 
> Can't reproduce it, for me it gives B::NULL objects as it should.

I cannot reproduce this either.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118525

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About