Add a #line directive to identify the source of an error
David Leadbeater [Tue, 11 Jan 2011 00:13:07 +0000 (00:13 +0000)]
Changes
lib/Eval/WithLexicals.pm

diff --git a/Changes b/Changes
index 5b1fd41..7ebf515 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,4 @@
+  - Add a #line directive so it's clearer where errors occurred
   - Filter out lexicals called '&' since these are anon subs
 
 1.0.0 2010-12-05 17:04:00
index 6571291..c7b5fca 100644 (file)
@@ -36,6 +36,7 @@ sub eval {
 ${setup}
 sub Eval::WithLexicals::Cage::current_line {
 package ${package};
+#line 1 "(eval)"
 ${to_eval}
 ;sub Eval::WithLexicals::Cage::pad_capture { }
 BEGIN { Eval::WithLexicals::Util::capture_list() }