Name : perl-common-sense
| |
Version : 3.0
| Vendor : obs://build_opensuse_org/home:csbuild
|
Release : 2.2
| Date : 2015-07-14 14:26:31
|
Group : Development/Libraries/Perl
| Source RPM : perl-common-sense-3.0-2.2.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : common::sense - save a tree AND a kitten, use common::sense!
|
Description :
This module implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders. In fact, after working out details on which warnings and strict modes to enable and make fatal, we found that we (and our code written so far, and others) fully agree on every option, even though we never used warnings before, so it seems this module indeed reflects a \"common\" sense among some long-time Perl coders.
The basic philosophy behind the choices made in common::sense can be summarised as: \"enforcing strict policies to catch as many bugs as possible, while at the same time, not limiting the expressive power available to the programmer\".
Two typical examples of this philosophy are uninitialised and malloc warnings:
undef is a well-defined feature of perl, and enabling warnings for using it rarely catches any bugs, but considerably limits you in what you can do, so uninitialised warnings are disabled.
Freeing something twice on the C level is a serious bug, usually causing memory corruption. It often leads to side effects much later in the program and there are no advantages to not reporting this, so malloc warnings are fatal by default.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/csbuild:/Perl/CentOS_7/noarch |