Skip Menu |

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

Report information
The Basics
Id: 40694
Status: new
Priority: 0/
Queue: Digest-SHA1

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

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



Subject: use warnings does'nt warn about calling the interface as class method, only -w does
-w warns: schweinsaug:~ fh$ perl -w -MDigest::SHA1 -le 'print Digest::SHA1->sha1_hex("foo")' &Digest::SHA1::sha1_hex function probably called as class method at -e line 1. 28d93f7789673a0106ab6a9c17d57636ea791263 use warnings doesn't: schweinsaug:~ fh$ perl -Mstrict -Mwarnings -MDigest::SHA1 -le 'print Digest::SHA1->sha1_hex("foo")' 28d93f7789673a0106ab6a9c17d57636ea791263 The warning is essential because the generated digest is incorrect in the example above. -Florian