| 1 | package Data::Dumper::OneLine; | ||||||||||
| 2 | 3 | ▶ | use 5.008005; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use Data::Dumper (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | ▶ | use Data::Recursive::Encode; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | ▶ | use parent qw(Exporter); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | our @EXPORT = qw(Dumper); | |||||||||
| 9 | |||||||||||
| 10 | 3 | our $VERSION = "0.06"; | |||||||||
| 11 | 3 | our $Encoding; | |||||||||
| 12 | |||||||||||
| 13 | 7 | ▶ | sub Dumper { | ||||||||
|
Subroutine
Dumper: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 7 | my $stuff = shift; | |||||||||
| 15 | 7 | local $Data::Dumper::Indent = 0; | |||||||||
| 16 | 7 | local $Data::Dumper::Terse = 1; | |||||||||
| 17 | 7 | local $Data::Dumper::Sortkeys = 1; | |||||||||
| 18 | 7 | local $Data::Dumper::Quotekeys = 0; | |||||||||
| 19 | 7 | local $Data::Dumper::Deparse = 1; | |||||||||
| 20 | |||||||||||
| 21 | 7 | ▶ | if ($Encoding) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 1 | $stuff = Data::Recursive::Encode->encode_utf8($stuff); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 7 | my $str = Data::Dumper::Dumper($stuff); | |||||||||
| 26 | 7 | $str =~ s/[\n\r]/ /g; | |||||||||
| 27 | 7 | return $str; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 3 | 1; | |||||||||
| 31 | __END__ | ||||||||||