Hanging loop

M

Milo Thurston

This may be a trivial thing, but this simple code seems to
behave oddly:

sequences = Bio::FlatFile.auto(ARGF)
sequences.each do |seq|
puts seq.entry_id
end

Processes all the files I give it but hangs the script after
finishing with the last file. Why would this be?
The code above is from the BioRuby site.
Thanks for any suggestions.
 
T

ts

M> Processes all the files I give it but hangs the script after
M> finishing with the last file. Why would this be?

try to give it ^D (Control-D) to say that it must stop to
process. Apparently it's waiting for input from stdin


Guy Decoux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,373
Latest member
Desiree036

Latest Threads

Top