"use warnings" is lexical and -w is global. What's wrong with * w* and $^W
In reply to Re^4: Issue with #!usr/bin/perl by Anonymous Monk in thread Issue with #!usr/bin/perl by Anonymous Monk