“转换字符串”;a、 b.c.“;到$hash 您所在的位置:网站首页 ckeditor5全屏功能 “转换字符串”;a、 b.c.“;到$hash

“转换字符串”;a、 b.c.“;到$hash

#“转换字符串”;a、 b.c.“;到$hash| 来源: 网络整理| 查看: 265

“转换字符串”;a、 b.c.“;到$hash-;{a} -;{b} -;{c} 在Perl中,perl,perl-data-structures,Perl,Perl Data Structures,我有如下动态嵌套哈希引用: my $hash = { 'a' => { 'b' => { 'c' => 'value' } } }; my $keys = 'a.b.c'; my $v='something'; my $h = $hash; foreach my $k(split /\./, $keys) { $h = $h->{$k}; } print $h; # "value" my $h = $hash; my @split_key = split /\.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有