We can declare a line number, in source code, like so # perl <<foo
#line 54 die smiling foo
smiling at - line 54. #
and counting newlines within a Filter::Simple code block is easy enough but how do I find out what line to start at, so I can insert #line comments into my filter output that will match the input? I am about to experiment with caller(N) to see how many frames back to go, then I'll use that, but I am asking here in case anyone knows a better way.