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
===