Refactor t/globs.t to avoid the side effects of a change to strict.pm
authorNicholas Clark <nick@ccl4.org>
Fri, 10 Feb 2012 19:48:25 +0000 (19:48 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 10 Feb 2012 19:48:25 +0000 (19:48 +0000)
commit88d3c90be7333e5f9f8866502380149c9d403a4f
treebeece408f26f3554554d7830fa08f30ad2634b0b
parent3cba7a2c0211121aabb5cda50db17a5d84de1773
Refactor t/globs.t to avoid the side effects of a change to strict.pm

As of blead commit b50b20584a1bbc1a, Implement new 'use 5.xxx' plan,
use strict; will write to %^H. Move the eval that creates the subroutine
into a different scope, a new subroutine generate_glob(), so that its
outside pointer chain doesn't include gv_grew(). This avoids problems with
eval ops changing the side of the %^H copies at runtime.
CHANGES
t/globs.t