The complexity of the Perl test script went pretty high when all the checks EOL checks were done there, so we moved the functionality to an external Python script that does the thing and returns a code based on the result.