You mention "academic" several times. So I guess you have
done research (that's what they do in the academic world).
So, you must have searched CPAN, and came up empty handed.
Which surprises me, because I always thought someone had
solved the problem and made the solution available.