On 03.04.2007 04:56, Mike wrote:
>    How could I know that current iteration is the last in the series?
>    For example:
> 
> [1, 2, 3, 4, 5, 3, 4].each do |element|
>    print element.to_s
>    print ',' if !LAST
> end
> 
> P.S. This is just an example. I don't want to use "join". My program
> logic is much complicated than this example.

Then *what* is your logic?  What are you trying to achieve?

Kind regards

	robert