in reply to Re^3: Who is turning $^W on?in thread Who is turning $^W on?
HARNESS_PERL_SWITCHES=-X make test [download]
But if you still wanted to keep the lexical warnings this won't do what you want, because it disables them as well.