NAME
Thorium::Protection - Use protection when dealing with radioactive elements
VERSION
version 0.509
SYNOPSIS
use Thorium::Protection;
DESCRIPTION
This pragma[1] does:
Turns on strict
Turns on all warnings
Enable 5.10+ features via feature
Sets the method order resolution (mro) to C3. See mro for more info
Turns indirect method calling into a fatal action. This is done through indirect
Inspiration derived from Modern::Perl and cron.
[1] Technically not a pragma, but a lower case package name. But since we are changing pragma-y things, make it look like one
WARNINGS
The
use
should be as close to the first thing executed as possible, otherwise you may think you have strict turned on, but won't.Use of this in modules isn't encouraged as you don't really gain anything other than a shaving off a few keystrokes. Modules are generally not invoked as if executables from the command line. Additionally there would be a slight (not timed/tested) overhead of doing this a large amount of times. Therefore, stick to use in non-modules.
Not tested under mod_perl. While I don't suspect any problems, mod_perl does weird things.
This doesn't enabled strict, warnings, etc for all modules/other perl associated with that script -- only to the end of the file.
AUTHOR
Adam Flott <adam@npjh.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.