Friday, 17th April 2020 ◆ Bivalve mollusc has tendency to shout for attention? (6)

In a previous job, I used to work with Perl a lot. To make life simpler, I made a quick and dirty REPL (read-eval-print-loop) for Perl. It is similar to the interactive shells offered by Ruby (irb) and Python (python -i).

  • You can refer to the return values of previous expressions with [[0]], [[1]], [[2]] etc.
  • Hashrefs and arrayrefs are pretty-printed so they are easy to read
  • Prompt-like keyboard commands (up for history, ctrl-l for clear, editting current line) is automatically enabled if you install the relevant CPAN modules for your platform
A REPL for Perl

I stuck it in a gist in case it will be useful for anyone else. Just put it on your path, and you're good to go!


There are no comments yet.