Site perlbanjo.com is released! Run & share Perl code in the browser.
Long story short: today I'm happy to release a simple tool, a website that you can use to run & share Perl code.
There are great web tools in Perl ecosystem:
- CPAN & PAUSE - repository to store and upload Perl libraries
- https://metacpan.org - interface to explore and view Perl libraries
- http://cpantesters.org - system that runs tests for all Perl libraries and shows results
- https://kritika.io - static code analysis system
- and others (sorry not to mention them all)
But I always missed a simple tool to share Perl code. Yes there is https://gist.github.com/ and a lot of other pastebin sites, but they just share the code without the ability to run it.
In browser you can run Perl code at http://perltuts.com, but there is no way to save your work and to share it with others. There is a tool that you can use to run & share Perl code https://ideone.com/, but it is complicated and you can't use perl one-liners in it.
I have created the tool that I wanted to exist. It is very simple. Enter the script content, enter the run command and press one button. The site is not hiding the way it runs code, so you can not only run `perl script.pl`, but also `perl -E 'say "Yey!"'` or `man echo` (or even `rm -rf /`).
Each run is executed in a short lived isolated container. So it it is a good place to run some strange one-liners.
The layout of the site is responsive. It works nice not only on desktop, but also on mobile phones.
I'm thinknig of serveral ways of using this tool: just save some code you want to show somebody - it is easy to share a link and the recipient can easily run the code an experiment with it without the need to leave the browser. The other way is to use this site without sharing code. It is pretty convinient to run some simple perl code in the browser on this site. And if you are on the go and can't access your deskop right now you can do it on mobile.
I really hope that this tool will be usefull not only for me, but also for others. So, what do you think? I'll be happy to get your opinion about this small project. Do you like it, or not. Will you use it? What features do you need?