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

Perl Tests: Better output when comparison fails

use Test::More;
use Test::Differences;

is_deeply($actual, $expected, 'foo') or eq_or_diff($actual, $expected, 'oof');

or

is_deeply($actual, $expected, 'foo') or diag explain $actual;