in reply to Here there be cammels!

Howdy, and welcome to the Monastery!

Perl's internal warning mechanism only relates to the code that Perl is executing, i.e. your script, and (probably) cannot be repurposed for the code your compiler will be processing. You'll have to roll your own, or look at CPAN for suitable modules. (Other monks may be able to provide pointers.)