I use the mojolicious framework to write Web-App.
Mojo::Base has a nice feature to enable stricture and warnings in all modules which inherit from it.
However in a set of core modules for my App I want all warnings to be FATAL.
This is achieved by writing
use warnings FATAL => qw( all );
I want to write a module like Mojo::Base which just makes warnings fatal for every caller which inherits from it. This way I will avoid writing the above code all the time.
Thanks.
You can make a module that imports warnings in its
importsub:Then FATAL warnings will be enabled in every module that
useit:Yields: