简体   繁体   English

如何控制 Perl 的 Data::Dumper 中的空白?

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

For Data::Dumper , we have options for indentation:对于Data::Dumper ,我们有缩进选项:

$Data::Dumper::Indent = 1;

I don't prefer 2 or 3. In option 1, it was 2 whitespace added.我不喜欢 2 或 3。在选项 1 中,添加了 2 个空格。 Can I change?我可以改变吗?

No. $Data::Dumper::Indent and $Data::Dumper::Terse are the only means of controlling the indenting.没有。 $Data::Dumper::Indent$Data::Dumper::Terse是控制缩进的唯一方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM