Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么是perl';在python/ruby';s检验法_Perl_Tostring_Representation - Fatal编程技术网

什么是perl';在python/ruby';s检验法

什么是perl';在python/ruby';s检验法,perl,tostring,representation,Perl,Tostring,Representation,在python/ruby的inspect方法中,perl与repr的等价物是什么 (我这样问是为了能用它进行打印调试)我想你在找Data::Dumper;请参阅以获取一些示例。看起来您已经得到了一个很好的答案,但是,为了便于将来参考,通常最好包含所需函数的功能描述,以便那些知道(在本例中)Perl但不熟悉Python/Ruby的人,仍然可以帮助。考虑更漂亮的打印。考虑更漂亮的打印和键排序和离开子例程默认情况下,并显示变量名。

在python/ruby的inspect方法中,perl与repr的等价物是什么


(我这样问是为了能用它进行打印调试)

我想你在找
Data::Dumper
;请参阅以获取一些示例。

看起来您已经得到了一个很好的答案,但是,为了便于将来参考,通常最好包含所需函数的功能描述,以便那些知道(在本例中)Perl但不熟悉Python/Ruby的人,仍然可以帮助。考虑更漂亮的打印。考虑更漂亮的打印和键排序和离开子例程默认情况下,并显示变量名。