nonsense - no-nonsense perl
package Foo; no nonsense;
This is my contribution to the module-that-enables-pragmas-for-me meme. It enables strict, warnings, automatically makes your module return true, and automatically cleans out your namespace.
And, let's be honest, "no nonsense" is the best name for a pragma ever.
use nonsense, strict and warnings will not be enabled. What nonsense!
If you look at the commented-out code in
unimport, I might extend this module to allow even more boilerplate-free programming. If you want a type library, you just say
no nonsense 'type library'. If you want a class, you just say
no nonsense 'class'.
This module should integrate with the less pragma, so the degree of nonsense that your module
Someone mentioned that releasing a module like this makes me look like Evan Carroll. I disagree, as the words "but maintained" appear nowhere in the program text.
Jonathan Rockway <email@example.com>
This software is copyright (c) 2010 by Jonathan Rockway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.