-/* $Id: MD5.xs,v 1.45 2005/11/26 11:06:20 gisle Exp $ */
-
/*
* This library is free software; you can redistribute it and/or
* modify it under the same terms as Perl itself.
if (len == 11 && memEQ("Digest::MD5", data, 11)) {
msg = "probably called as class method";
}
+ else if (SvROK(ST(0))) {
+ SV* sv = SvRV(ST(0));
+ if (SvOBJECT(sv) && strEQ(HvNAME(SvSTASH(sv)), "Digest::MD5"))
+ msg = "probably called as method";
+ }
}
if (msg) {
const char *f = (ix == F_BIN) ? "md5" :