I think you can do the appropriate faking of #line numbers only through eval. #line directives are only evaluated at compile time of code, so they cannot use variables.
If you want to wrap/warp Test::More, you want to look at Test::Builder. It also tells you how to skip levels in reporting the error location - see caller.
In reply to Re: variable based #line directives?
by Corion
in thread variable based #line directives?
by chorankates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |