http://www.perlmonks.org?node_id=380540


in reply to complicated data structures

One way to solve your particular problem would be to use eval. Not sure it is the most _elegant_ way, but it would probably be fairly easy.