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
如何将任意哈希转换为html表_Html_Perl - Fatal编程技术网

如何将任意哈希转换为html表

如何将任意哈希转换为html表,html,perl,Html,Perl,我已经看过了,但它只支持一级深度散列。对于这个模块,我找不到一种方法,在多级散列的情况下为某些头指定colspan和rowspan。有什么解决办法吗 考虑这个散列,它需要转换成如下表: 您已选中?相关: my $persons = { 'Person1' => { 'Prop1' => { 'X' => '8',

我已经看过了,但它只支持一级深度散列。对于这个模块,我找不到一种方法,在多级散列的情况下为某些头指定colspan和rowspan。有什么解决办法吗

考虑这个散列,它需要转换成如下表:

您已选中?

相关:
my $persons = {
          'Person1' => {
                    'Prop1' => {
                                  'X' => '8',
                                  'Y' => '8'
                                },
                    'Prop2' => {
                                   'X' => '5',
                                   'Y' => '5'
                               },
                    'Prop3' => {
                                   'X' => '0',
                                   'Y' => '0'
                               },
                    'Prop4' => {
                                   'X' => '10',
                                   'Y' => '10'
                               },
                    'Prop5' => {
                                   'X' => '1',
                                   'Y' => '12'
                               }
                    },
          'Person2' => {
                    'Prop1' => {
                                  'X' => '12',
                                  'Y' => '12'
                                },
                    'Prop2' => {
                                  'X' => '12',
                                  'Y' => '12'
                               },
                    'Prop3' => {
                                  'X' => '12',
                                  'Y' => '12'
                               },
                    'Prop4' => {
                                  'X' => '12',
                                  'Y' => '12'
                               },
                    'Prop5' => {
                                  'X' => '12',
                                  'Y' => '12'
                               }
                    }
        };