Yes, you've just discovered the fact local $_ is broken in lots of interesting ways, mostly associated with internal magic. I've been doing some fixes in that area recently, so if you feel like reporting it using perlbug, I might get round to having a proper look at it sometime (there are already some existing local/shared bugs on my list to sort out at some point).