You should return clamav as a reference or store it in the object if it needs reuse outside of this module.  The global my %clamav will make this hard to maintain and track how it gets instantiated.