make assign to $^A update FmLINES
authorDavid Mitchell <davem@iabyn.com>
Wed, 20 Jul 2011 13:39:20 +0000 (14:39 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 20 Jul 2011 14:55:06 +0000 (15:55 +0100)
commit64eff8b72e154607aa99f7713bd4d05c443be47f
tree19864af98f615e53b47dd052e2a866cb63bba30f
parentad5e438df86ffad2a70e2a2a5f142bdf5eb7da7b
make assign to $^A update FmLINES

Currently assigning to $^A updates the string in
PL_bodytarget, but doesn't update FmLINES(PL_bodytarget).

This can cause later writes to get confused about how many
lines have been output, and was causing write.t to fail test 418
under miniperl. (Only under miniperl, because skipping some tests under
miniperl affected how $^A's content and line count got messed up).

Fix this by updating FmLINES(PL_bodytarget) when $^A is set.

(Also fixes a TODO test which was failing due to 'local $^A' in earlier
tests)
mg.c
t/op/write.t