Lines Matching defs:warnings

3 # This file was created by warnings.pl
7 package warnings;
13 warnings - Perl pragma to control optional warnings
17 use warnings;
18 no warnings;
20 use warnings "all";
21 no warnings "all";
23 use warnings::register;
24 if (warnings::enabled()) {
25 warnings::warn("some warning");
28 if (warnings::enabled("void")) {
29 warnings::warn("void", "some warning");
32 if (warnings::enabled($object)) {
33 warnings::warn($object, "some warning");
36 warnings::warnif("some warning");
37 warnings::warnif("void", "some warning");
38 warnings::warnif($object, "some warning");
42 The C<warnings> pragma is a replacement for the command line flag C<-w>,
46 If no import list is supplied, all possible warnings are either enabled
53 =item use warnings::register
55 Creates a new warnings category with the same name as the package where
58 =item warnings::enabled()
60 Use the warnings category with the same name as the current package.
62 Return TRUE if that warnings category is enabled in the calling module.
65 =item warnings::enabled($category)
67 Return TRUE if the warnings category, C<$category>, is enabled in the
71 =item warnings::enabled($object)
74 warnings category.
76 Return TRUE if that warnings category is enabled in the first scope
80 =item warnings::warn($message)
84 Use the warnings category with the same name as the current package.
86 If that warnings category has been set to "FATAL" in the calling module
89 =item warnings::warn($category, $message)
93 If the warnings category, C<$category>, has been set to "FATAL" in the
96 =item warnings::warn($object, $message)
101 warnings category.
103 If that warnings category has been set to "FATAL" in the scope where C<$object>
107 =item warnings::warnif($message)
111 if (warnings::enabled())
112 { warnings::warn($message) }
114 =item warnings::warnif($category, $message)
118 if (warnings::enabled($category))
119 { warnings::warn($category, $message) }
121 =item warnings::warnif($object, $message)
125 if (warnings::enabled($object))
126 { warnings::warn($object, $message) }
297 delete $Carp::CarpInternal{'warnings'};
327 { Croaker("Unknown warnings category '$word'")}
365 { Croaker("Unknown warnings category '$word'")}
393 { Croaker("Unknown warnings category '$word'")}
415 Croaker("Unknown warnings category '$category'")
421 Croaker("package '$category' not registered for warnings")
449 Croaker("Usage: warnings::enabled([category])")
462 Croaker("Usage: warnings::warn([category,] 'message')")
475 Croaker("Usage: warnings::warnif([category,] 'message')")