Stop my Class + sub FIELDS + hash lookup from crashing
authorFather Chrysostomos <sprout@cpan.org>
Sun, 3 Nov 2013 21:07:44 +0000 (13:07 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 3 Nov 2013 21:07:44 +0000 (13:07 -0800)
commitc41f466f88fb4761468d8759d1104127ebceef83
tree500c149335f0e033f3750112f50a382aa3ff6527
parente5784b74daf1ced389e2ba846f822b6958cd6d19
Stop my Class + sub FIELDS + hash lookup from crashing

‘sub FIELDS’ cheats by not vivifying the *FIELDS glob.  The code that
checks whether hash keys are valid assumes that the FIELDS entry in a
stash is a GV, which it is not in this case, so it crashes.
op.c
t/op/my_stash.t