develooper Front page | perl.perl5.porters | Postings from September 2010

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

Thread Next
From:
Father Chrysostomos via RT
Date:
September 26, 2010 13:27
Subject:
[perl #43663] 5.9.5 resolves to GLOB constant, not subpackage name
Message ID:
rt-3.6.HEAD-5116-1285532833-1665.43663-15-0@perl.org
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'


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