Sorry guys, couldn't log in earlier.
++ikegami golf. I shall spend tomorrow trying to decypher it ;
)
Re: "show us 'yer code!" I was working backwards from the last node towards the root node but was hitting 20 lines+. The PHP was very similar to my perl attempt, which of course made me weep buckets.