Skip to content

Commit 9e1ad48

Browse files
author
Tom O'Hara
committed
fix for restore
1 parent 6f81a88 commit 9e1ad48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extract_matches.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ BEGIN
164164
# Update the current line being matched
165165
if ($restore ne "") {
166166
## OLD: my($restore_text) = eval { "$restore"; };
167-
my($restore_text) = eval "$restore";
167+
## BAD: my($restore_text) = eval "$restore";
168+
## NOTE: Due to a change in Perl, need to evaluate the variables in the context of a string.
169+
my($restore_text) = eval " \"$restore\" ";
168170
&debug_print(&TL_DETAILED, "restoring $restore_text to line\n");
169171
$_ = $restore_text . $'; # '
170172
&debug_print(&TL_VERBOSE, "line='$_'\n");

0 commit comments

Comments
 (0)