I would like perl -cw ... to return a non-zero exit status if a compilation warning is issued.
eg. suppose this a.pmis a file:
use warnings;
asd;
Then perl -cw a.pmreports:
Unquoted string "asd" may clash ...
Useless use of a constant in void context ...
a.pm syntax OK
and the exit status is set to 0. I would like to be able to detect that compilation warnings have been issued - preferably if I set the exit status.
Erikr source
share