pl Half stack-based, half procedural, and almost, but not quite, entirely unlike Perl. Try it online. or echo -n INPUT | perl pl.pl FILE