
Short Perl scripts
Author: John M. Gabriele | back to index
---
Here's just a few short scripts and one-liners I figured I'd start keeping at arms-length. Nothing much here yet, but I may add to it.
Calculator
$ perl -lne 'print eval'
Interactive Perl prompt (REPL)
You can get something pretty similar to a REPL prompt by entering the debugger, like so:
$ perl -de 42