A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Mojolicious version 9 cheat sheet

Mojo 9 changes:

s/over/requires/

s/route/any/

s/via/methods/


Parse a Perl stack trace for ease of understanding

Problem:

A Perl stack track is difficult to parse with my inferior human brain; I want to align each line horizontally so that discrepancies jump out at me.

Solution:

This isn't the whole solution, but it goes some way towards it.

perl script.pl | grep -v ^eval | perl -plne'$len=300-length($_); $space=" "x$len; s/called at /${space}called at /'