From: Lloyd Linklater Date: 2008-10-21T22:05:45+09:00 Subject: Re: Ruby way to take some action only once in a loop? You do not say if the "do once" code must rely on something obtained in the loop. If you will excuse me for a simplistic question, if you are doing something like writing a header, why not do it before you even start the loop? I dislike checking for a conditional every time a loop runs. It sucks up CPU time unnecessarily. -- Posted via http://www.ruby-forum.com/.