Perl 5 version of fractal-tree