in reply to Reorganizing hash

See my reply on StackOverflow. Also, please fix the link to SO to [https://stackoverflow.com/questions/54179876/reorganize-hash-in-specific-format].
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]