1 package warnings::register;
9 warnings::register - warnings import function
13 use warnings::register;
17 Creates a warnings category with the same name as the current package.
19 See L<warnings> and L<perllexwarn> for more information on this module's
26 # left here as cruft in case other users were using this undocumented routine
33 vec($mask, $bit, 1) = 1;
42 my $package = (caller(0))[0];
43 warnings::register_categories($package);
45 warnings::register_categories($package . "::$_") for @categories;