note
NetWallah
Thank you (++) - no - I was not aware of zip/mesh in List::MoreUtil.<p>
However, my attempt at using it fails:
<c>
perl -MList::MoreUtils -E 'my %stuff=(otherinfo=>"this and that",
dateinfo=>{List::MoreUtils::zip
qw|sec min hour mday mon year wday yday isdst|
,localtime(time)
});
say "sec=",$stuff{dateinfo}{sec},
" year=",$stuff{dateinfo}{year}'
Type of arg 1 to List::MoreUtils::mesh must be array (not list) at -e line 5, near ")
}"
Type of arg 2 to List::MoreUtils::mesh must be array (not localtime) at -e line 5, near ")
}"
Execution of -e aborted due to compilation errors.
</c>
Any workarounds ? Why does it not like a list ?
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-159887">
<p><small>
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
</small></p>
</div></div>
1105972
1105974