This small patch fixes an error I've been encountering while running MHA with Perl 5.22.
Perl 5.22.x doesn't ignore extra arguments in sprintf anymore and instead throws an error if less formats are available than variables to be transformed into them.
It's probably not the most elegant way to do this, so please feel free to either adapt this code to your liking or let me know how you would like me to change my patch.
This small patch fixes an error I've been encountering while running MHA with Perl 5.22.
Perl 5.22.x doesn't ignore extra arguments in sprintf anymore and instead throws an error if less formats are available than variables to be transformed into them.
It's probably not the most elegant way to do this, so please feel free to either adapt this code to your liking or let me know how you would like me to change my patch.
Best,
– Guillaume Ceccarelli