http://www.perlmonks.org?node_id=998729


in reply to Checking for duplicate subroutine names

use warnings;

I'm not a Perl expert either, but -w and 'use warnings' apparently aren't the same:

VinsWorldcom@C:\Users\VinsWorldcom\tmp> test.pl Subroutine s1 redefined at C:\Users\VinsWorldcom\tmp\test.pl line 9. calling s1... hi 2 you