Perlito is a compiler collection that implements a Perl5 and a Perl6 compiler.
Main Perlito repository: https://github.com/fglock/Perlito
Source program:
Compiler log:
Compiled to Javascript:
Output: