Skip to content

Instantly share code, notes, and snippets.

@pokle
Created February 21, 2015 08:17
Show Gist options
  • Save pokle/496971826ec32e9700fa to your computer and use it in GitHub Desktop.
Save pokle/496971826ec32e9700fa to your computer and use it in GitHub Desktop.
Tiny perl repl
#!/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