diff options
author | Daniel Böhmer <post@daniel-boehmer.de> | 2021-01-18 06:52:27 +0100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2021-01-18 23:41:13 +0000 |
commit | fecc0102dc276d1350aabfcdf4942d81c5620c7d (patch) | |
tree | 53b814c6f23e7c027ff0b7ee366749d1b4c86dcf /dist/Carp | |
parent | b1846e36c303aefcfd6b0560936088badcbab8e0 (diff) | |
download | perl-fecc0102dc276d1350aabfcdf4942d81c5620c7d.tar.gz |
Fix POD for $Carp::RefArgFormatter
- Data::Dumper::Dump() MUST be called as class method
- indent example for code markup
Also added myself to AUTHORS as requested:
Ran './Porting/checkAUTHORS.pl --update --from=v5.30.0' and
fixed the entry by hand because of broken Unicode chars.
Diffstat (limited to 'dist/Carp')
-rw-r--r-- | dist/Carp/lib/Carp.pm | 10 | ||||
-rw-r--r-- | dist/Carp/lib/Carp/Heavy.pm | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dist/Carp/lib/Carp.pm b/dist/Carp/lib/Carp.pm index 941f59db4b..df563d06a2 100644 --- a/dist/Carp/lib/Carp.pm +++ b/dist/Carp/lib/Carp.pm @@ -211,7 +211,7 @@ BEGIN { } -our $VERSION = '1.51'; +our $VERSION = '1.52'; $VERSION =~ tr/_//d; our $MaxEvalLen = 0; @@ -944,10 +944,10 @@ This variable sets a general argument formatter to display references. Plain scalars and objects that implement C<CARP_TRACE> will not go through this formatter. Calling C<Carp> from within this function is not supported. -local $Carp::RefArgFormatter = sub { - require Data::Dumper; - Data::Dumper::Dump($_[0]); # not necessarily safe -}; + local $Carp::RefArgFormatter = sub { + require Data::Dumper; + Data::Dumper->Dump($_[0]); # not necessarily safe + }; =head2 @CARP_NOT diff --git a/dist/Carp/lib/Carp/Heavy.pm b/dist/Carp/lib/Carp/Heavy.pm index 028d2a206e..fdb3e52ef6 100644 --- a/dist/Carp/lib/Carp/Heavy.pm +++ b/dist/Carp/lib/Carp/Heavy.pm @@ -2,7 +2,7 @@ package Carp::Heavy; use Carp (); -our $VERSION = '1.51'; +our $VERSION = '1.52'; $VERSION =~ tr/_//d; # Carp::Heavy was merged into Carp in version 1.12. Any mismatched versions |