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

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

Thread Next
Father Chrysostomos via RT
September 26, 2010 13:27
[perl #43663] 5.9.5 resolves to GLOB constant, not subpackage name
Message ID:
This was fixed by:

From 5e0caaeb4056614af54deb646e72147bdc6dcadc Mon Sep 17 00:00:00 2001
From: Nicholas Clark <>
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,"}

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About