So this will modify the currently filtered code to add the name of the file being included. This means that when you get the syntax error it will also include the filename the error occurred in. This code is untested, btw, so don't be surprised if it doesn't work off the bat.use Filter::Include post => sub { $_[1] = "#line $Filter::Include::LINE $_[0]\n$_[1]"; };
_________
broquaint
In reply to Re: Error location in Filter-Include
by broquaint
in thread Error location in Filter-Include
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |