Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-e option to HLL::Compiler needs to pass an arg0.
  • Loading branch information
pmichaud committed Jul 25, 2011
1 parent 9573361 commit b5f2c5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HLL/Compiler.pm
Expand Up @@ -304,7 +304,9 @@ class HLL::Compiler {
self.nqpevent(%adverbs<nqpevent>) if %adverbs<nqpevent>;

my $result;
if %adverbs<e> { $result := self.eval(%adverbs<e>, |@a, |%adverbs) }
if %adverbs<e> {
$result := self.eval(%adverbs<e>, '-e', |@a, |%adverbs)
}
elsif !@a { $result := self.interactive(|%adverbs) }
elsif %adverbs<combine> { $result := self.evalfiles(@a, |%adverbs) }
else { $result := self.evalfiles(@a[0], |@a, |%adverbs) }
Expand Down

0 comments on commit b5f2c5d

Please sign in to comment.