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