Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Random and regression testing - slight improvement

#!/usr/bin/perl
use strict;
use warnings;

use Text::Diff;          # instead of File::Compare


# and diff instead of compare
if (my $diff = diff ("random.log", "regress.log")) {
    print "Regression failed\n\n";
    print $diff;
} else {
    print "Regression successful\n";
}