Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stashed Perl 6 code

  • Loading branch information...
commit 28d6f08e9e4f982ee737a46fd1197903bc90a83b 1 parent d93f352
@azawawi authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 test_repl.p6
View
18 test_repl.p6
@@ -0,0 +1,18 @@
+
+use v6;
+
+
+my $save_ctx;
+while 1 {
+ my $code = prompt("*> ");
+ try {
+ say $save_ctx;
+ my $output := pir::compreg__Ps('perl6').eval($code, :outer_ctx($save_ctx));
+ say $output;
+ CATCH {
+ default {
+ say "Error: " ~ $!;
+ }
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.