[system] / trunk / pg / lib / WeBWorK / PG / Translator.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/WeBWorK/PG/Translator.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 4387 Revision 4388
1586 1586
1587 # This is pretty tricky and doesn't always work right. 1587 # This is pretty tricky and doesn't always work right.
1588 # We seem to need PG_priv instead of main when PG_answer_eval is called within a completion 1588 # We seem to need PG_priv instead of main when PG_answer_eval is called within a completion
1589 # 'package PG_priv; ' 1589 # 'package PG_priv; '
1590 1590
1591 local $SIG{__WARN__} = "DEFAULT"; 1591 local $SIG{__WARN__} = sub {die(@_)}; # make warn die, so all errors are reported.
1592 local $SIG{__DIE__} = "DEFAULT"; 1592 local $SIG{__DIE__} = "DEFAULT";
1593 1593
1594 no strict; 1594 no strict;
1595 my $out = eval('package main;'.$string); 1595 my $out = eval('package main;'.$string);
1596 $out = '' unless defined($out); 1596 $out = '' unless defined($out);

Legend:
Removed from v.4387  
changed lines
  Added in v.4388

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9