Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I control the whitespace in Perl's Data::Dumper?

For Data::Dumper, we have options for indentation:

$Data::Dumper::Indent = 1;

I don't prefer 2 or 3. In option 1, it was 2 whitespace added. Can I change?

like image 617
Vishwasu Deshpande Avatar asked Sep 17 '25 00:09

Vishwasu Deshpande


1 Answers

No. $Data::Dumper::Indent and $Data::Dumper::Terse are the only means of controlling the indenting.

like image 100
ikegami Avatar answered Sep 19 '25 04:09

ikegami