Hash Fold:Perl模块用于展平和展平嵌套的哈希引用 源码
哈希::折叠 名称 Hash :: Fold-展平和展平嵌套的hashrefs 概要 use Hash::Fold qw( flatten unflatten ) ; my $object = bless { foo => ' bar ' }; my $nested = { foo => $object , baz => { a => ' b ' , c => [ ' d ' , { e => ' f ' }, 42 ], }, }; my $flattened = flatten( $nested ); is_deeply $flattened , { ' baz.a ' => ' b ' , ' baz.c.0 ' => ' d ' , ' baz.c.1.e ' => ' f ' ,
文件列表
Hash-Fold-master.zip
(预估有个18文件)
Hash-Fold-master
MANIFEST
144B
.github
workflows
test.yml
1KB
t
fold.t
8KB
pod.t
257B
pod-coverage.t
693B
synopsis.t
1KB
暂无评论