From: Robert Klemme Date: 2009-03-04T20:18:40+09:00 Subject: Re: parse a tree On 04.03.2009 03:51, Haris Bogdanović wrote: > How can I parse a tree (arrays within arrays), for example a tree of > strings, to print all strings ? Do you want to _parse_ or _print_? This is totally unclear to me. For displaying nested structures for debugging purposes, pp will do require 'pp' a = [...] # nested pp a If you want to parse: you did not provide how the input looks like so nobody could help you with that. Kind regards robert