From an API standpoint it would be good to have something that will give you the status of how bugged a file is. Most of this can be done from Perl, but one of the crucial things that I think needs to be done is testing whether a file hash has been magicked, i.e. whether the the PERL_MAGIC_dbfile bit has been set.
This could be an Enbugger thing, or it could be a B::Utils thing or something elsewere.