Forum: Ruby on Rails Re: EBADF error?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
charles (Guest)
on 2005-11-13 16:56
(Received via mailing list)
Saltman <saltman@...> writes:
> Have you tried rewriting these lines of code without using ruby "shortcuts"?
>
>   while str = logfile.readline
>     next unless str =~ /Average Redundancy Per Shell/
>     break
>   end

You're the man, Saltman!  I made your suggested change and it seems to
be
working.  Thanks a bunch.  I wonder if this is a ruby on windows-only
issue?

-cal
This topic is locked and can not be replied to.