develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #43663] 5.9.5 resolves to GLOB constant, not subpackage name

Thread Previous
From:
Father Chrysostomos via RT
Date:
January 9, 2012 08:38
Subject:
[perl #43663] 5.9.5 resolves to GLOB constant, not subpackage name
Message ID:
rt-3.6.HEAD-14510-1326127108-387.43663-15-0@perl.org
On Sun Sep 26 13:27:13 2010, sprout wrote:
> This was fixed by:
> 
> From 5e0caaeb4056614af54deb646e72147bdc6dcadc Mon Sep 17 00:00:00 2001
> From: Nicholas Clark <nick@ccl4.org>
> Date: Mon, 22 Oct 2007 20:19:55 +0000
> Subject: [PATCH] SQL::Translator triggered a subtle piece of wrongness,
> whereby it
>  managed to cause a proxy constant subroutine in the symbol table to
>  be upgraded to a GV at precisely the point where it was being
>  considered as a possible IO handle name. The core's user-space visible
>  behaviour certainly was buggy - I believe this patch to be the correct
>  fix. However, it seems to be very hard to write a test for it.
> 
> p4raw-id: //depot/perl@32172
> 
> Was a test ever added? We could base one on this:
> 
> perl5.9.5 -Mconstant=Just,0 -le 'sub
> IO::Handle::a_japh{print*{$_[0]}=~/([^:]+)$/," another Perl hacker,"}
> "Just"->a_japh'

A test has been added in commit 7148157.

-- 

Father Chrysostomos


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

Thread Previous


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