diff options
author | Ricardo Signes <rjbs@cpan.org> | 2010-09-08 16:40:26 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2010-09-10 11:06:27 -0400 |
commit | 572bfd364a342a66f375085e1dff02253f3de103 (patch) | |
tree | 7ca1c0e3b11092e921e8f02976913e8ca6106720 /qnx | |
parent | 3167abe51b640d3c3589b1f66145bedb05d9405f (diff) | |
download | perl-572bfd364a342a66f375085e1dff02253f3de103.tar.gz |
improve registration of warning categories
1. &warnings::register is added as the public mechanism for adding
new warning categories, rather than warnings::register::import
knowing about warnings's internals
2. warnings::register::import is updated to use &warnings::register
3. warnings::register::import can take a list of subcategories
The upshot is that you can now write:
package MyTool;
use warnings::register qw(io typos);
warnings::warnif('MyTool::io', $message);
...and tools that register new warnings categories do not need to cargo cult
code from warnings/register.pm
Diffstat (limited to 'qnx')
0 files changed, 0 insertions, 0 deletions