Quote from MD5.pm module readme:
in reply to CPAN/MD5 Problem
This module (MD5.pm) is just a thin wrapper around the Digest::MD5
module. It is provided so that legacy code that rely on the old
interface continue to work with the speed benefit of the new module.
Bottom line Digest::MD5 is now required by MD5.pm if you wish, as you seem to suggest in your question, to use the older (deprecated) MD5.pm.
As suggested in prior art abandoning MD5.pm and going straight to Digest::MD5 is highy recommended.
mitd-Made in the Dark
'Interactive! Paper tape is interactive!
If you don't believe me I can show
you my paper cut scars!'