For me it complains either way, as it should.
In reply to (tye)Re2: use warnings vs. perl -w by tye in thread use warnings vs. perl -w by dmckee