That is indeed a pain, and a reason I don't tend to interleave POD and code. It's also not an easy problem to solve; the best I can think of is a directive that implies cutting back to code right away. That buys two lines, at least.
Still, I can't shake the feeling that it shouldn't be hard to write a reasonably easy to use dumper that need not rely on source filters.
Makeshifts last the longest.