summaryrefslogtreecommitdiff
path: root/warnings.pl
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2010-09-12 15:27:55 -0400
committerRicardo Signes <rjbs@cpan.org>2010-09-12 15:27:55 -0400
commit5e7ad92ae4ecff6f6fbe5d294ad627f235ea800c (patch)
tree863e175c7279cc61fcddfd38700509d41bcbf254 /warnings.pl
parent790427a55372311797954fb3140cd3e0a4ae6d28 (diff)
downloadperl-5e7ad92ae4ecff6f6fbe5d294ad627f235ea800c.tar.gz
rename &warnings::register to avoid ambiguity
until this change code calling "warnings::register->import" was confused by &warnings::register existing.
Diffstat (limited to 'warnings.pl')
-rw-r--r--warnings.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/warnings.pl b/warnings.pl
index 0bb1fab701..e261643ce3 100644
--- a/warnings.pl
+++ b/warnings.pl
@@ -599,7 +599,7 @@ Equivalent to:
if (warnings::enabled($object))
{ warnings::warn($object, $message) }
-=item warnings::register(@names)
+=item warnings::register_categories(@names)
This registers warning categories for the given names and is primarily for
use by the warnings::register pragma, for which see L<perllexwarn>.
@@ -789,7 +789,7 @@ sub _mkMask
return $mask;
}
-sub register
+sub register_categories
{
my @names = @_;