in reply to Error location in Filter-Include
This is where your requested feature will come in handy:
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]"; };
HTH
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Error location in Filter-Include
by mosh (Scribe) on Jul 27, 2005 at 11:58 UTC | |
by broquaint (Abbot) on Jul 27, 2005 at 12:22 UTC |
In Section
Seekers of Perl Wisdom