2

How do you get the data structure of an object in Perl?

I can easily do this in R using str -

    str(data)

I wonder if there is similar one in Perl.

4

1 回答 1

6

您可以使用该Data::Dumper模块转储对象的结构。

use Data::Dumper;
print Dumper($data);
于 2013-08-27T23:54:54.100 回答