Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re-ordering data branches in a [Tree::DAG_Node] treeby kcott (Archbishop) |
on Apr 23, 2018 at 10:36 UTC ( [id://1213420]=note: print w/replies, xml ) | Need Help?? |
G'day atcroft, Here's a method using non-destructive transliteration. It requires 5.14 (see perl5140delta: Non-destructive substitution). The guts of the solution is:
I've tested with your OP data and tybalt's offering:
Output:
— Ken
In Section
Seekers of Perl Wisdom
|
|