At 05:21 AM 10/30/2002 +0900, you wrote:

>When you use string interpolation, to_s is called implicitly.

Thanks.  That is the "new thing today. ;-)


>   def pp_branch(b)
>       puts "(head) #{b[0]}"
>       b[1..-1].each { |item|
>           if Array === item
>             pp_branch(item)
>           else
>             puts "(leaf) #{item}"
>           end
>       }
>   end

That's it.  I was printing the branch as well as the leaf.
Doh!

Regards,
-mark.


>_why


-mark

-----
Mark Probert
GNPS - Optera Metro 3000
Tel (613) 768-1082 (ESN: 398-1082)
Mob (613) 715-2045
email: probertm / nortelnetworks.com