Created
February 21, 2015 08:17
-
-
Save pokle/496971826ec32e9700fa to your computer and use it in GitHub Desktop.
Tiny perl repl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rlwrap perl | |
$_='"Welcome to the perl repl"'; | |
do { | |
$result = eval($_); | |
print $@ if ($@); | |
print $result, "\n" if defined $result; | |
print 'pepl> '; | |
} while (<>); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment