Skip to content

Commit

Permalink
some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ido50 committed Jan 28, 2010
1 parent c9b61c4 commit d231823
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Tenjin/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ sub evaluate {
my $s = $filename ? "# line 1 \"$filename\"\n" : ''; # line directive
$s .= $script;

print STDERR "============================\n=========================\n$s\n================================\n====================\n";

my $ret;
if ($Tenjin::USE_STRICT) {
$ret = eval($s);
Expand All @@ -34,7 +36,9 @@ sub to_func {

$script = ($script =~ /\A.*\Z/s) && $& if $Tenjin::BYPASS_TAINT;
my $s = $filename ? "# line 1 \"$filename\"\n" : ''; # line directive
$s = "${s}sub { my (\$context) = \@_; $script }";
$s .= "sub { my (\$context) = \@_; $script }";

print STDERR "============================\n=========================\n$s\n================================\n====================\n";

my $ret;
if ($Tenjin::USE_STRICT) {
Expand Down

0 comments on commit d231823

Please sign in to comment.