Document that warnings.pm doesn't load Carp anymore
Rafael Garcia-Suarez [Wed, 25 Oct 2006 09:56:06 +0000 (09:56 +0000)]
p4raw-id: //depot/perl@29102

pod/perl595delta.pod

index db10827..43949c8 100644 (file)
@@ -108,6 +108,17 @@ use it at the end of a prototype, or before a semicolon.
 
 The C<base> pragma now warns if a class tries to inherit from itself.
 
+=item C<warnings>
+
+The C<warnings> pragma doesn't load C<Carp> anymore. That means that code
+that used C<Carp> routines without having loaded it at compile time might
+need to be adjusted; typically, the following (faulty) code won't work
+anymore, and will require parentheses to be added after the function name:
+
+    use warnings;
+    require Carp;
+    Carp::confess "argh";
+
 =back
 
 =head1 Utility Changes