Skip Menu |

This queue is for tickets about the Digest-MD5 CPAN distribution.

Report information
The Basics
Id: 40693
Status: resolved
Priority: 0/
Queue: Digest-MD5

People
Owner: Nobody in particular
Requestors: florian [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.36
Fixed in: (no value)



Subject: use warnings does'nt warn about calling the interface as class method, only -w does
-w warns: === perl -w -MDigest::MD5 -le 'print Digest::MD5->md5_hex("foo")' &Digest::MD5::md5_hex function probably called as class method at -e line 1. 3200a4cda22a4a935412da8113b4139b === use warnings doesn't: === perl -Mstrict -Mwarnings -MDigest::MD5 -le 'print Digest::MD5->md5_hex("foo")' 3200a4cda22a4a935412da8113b4139b ===
On Wed Nov 05 14:56:50 2008, FLORIAN wrote: Show quoted text
> -w warns: > > === > perl -w -MDigest::MD5 -le 'print Digest::MD5->md5_hex("foo")' > &Digest::MD5::md5_hex function probably called as class method at -e
line 1. Show quoted text
> 3200a4cda22a4a935412da8113b4139b > === > > use warnings doesn't: > > === > perl -Mstrict -Mwarnings -MDigest::MD5 -le 'print > Digest::MD5->md5_hex("foo")' > 3200a4cda22a4a935412da8113b4139b > ===
I forgot one thing - the warning is essential because the generated digest is incorrect in the example above. -Florian
I would like this too. Patches accepted :)
On Fri Nov 14 08:30:53 2008, GAAS wrote: Show quoted text
> I would like this too. Patches accepted :)
Ditto. Looks everso slightly nontrivial because the warning is generated from XS code, not Perl code. Were it PP, it would just be if warnings::enabled(something) -- Paul Evans
From: ozcoder [...] gmail.com
On Fri Nov 14 08:30:53 2008, GAAS wrote: Show quoted text
> I would like this too. Patches accepted :)
Please see my commit https://github.com/ozcoder/digest-md5/commit/b5c134475bc7a627bd14d1ff2a0349bce67a3cc1 It includes tests.
On Mon Feb 01 01:33:25 2016, ozcoder@gmail.com wrote:
Show quoted text
> On Fri Nov 14 08:30:53 2008, GAAS wrote:
> > I would like this too. Patches accepted :)
>
> Please see my commit
>
> https://github.com/ozcoder/digest-
> md5/commit/b5c134475bc7a627bd14d1ff2a0349bce67a3cc1
>
> It includes tests.

Released in 2.55.