From: Eric Christopherson Date: 2010-04-03T04:41:57+09:00 Subject: Re: Puts - not putting 'all' content on display console On Fri, Apr 2, 2010 at 8:43 AM, Dave Balmer wrote: > I am using Ruby 1.86 to process a 7,000+ record file and using Regular > Expressions to select and process content.  To ensure that the Regexp > are working correctly, I have been using “puts” to direct selected > records to the console for examination.  On examining the console output > from the “puts” command I don’t seem to get all of the records being > selected through the Regexp.  My question is this: in using a simple > ‘puts’ command, is there some argument that must be added to get every > selected record to be displayed on the console output?  And since I can > associate each record in the 7,000+ file with a record count number, is > there any reason to believe that the output to the console would not > appear in the same sequence as the record numbers being encountered? puts is buffered. Try calling $stdout.flush.