diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-25 09:56:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-25 09:56:06 +0000 |
commit | 18857c0b9a4a6ccbd858fbf7ee28ac44fa382b14 (patch) | |
tree | bc8405c8404f939141c57c70ca277b1d9ca75cc5 /pod | |
parent | 0b57cc8dacc3871a5751d8f0de0faa164dd9397e (diff) | |
download | perl-18857c0b9a4a6ccbd858fbf7ee28ac44fa382b14.tar.gz |
Document that warnings.pm doesn't load Carp anymore
p4raw-id: //depot/perl@29102
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perl595delta.pod | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pod/perl595delta.pod b/pod/perl595delta.pod index db10827e14..43949c82ea 100644 --- a/pod/perl595delta.pod +++ b/pod/perl595delta.pod @@ -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 |