This code doesn't give the intended results. I'm still limited as to how many threads I can kick off.t1 = Thread.new { output = []; cmd = IO.popen( "dir /s u:\\", 'r' ); while cmd.gets output.push $_ end Thread.current["output"] = output } ... t1.join got = t1["output"] got.each{|line| puts line}
In reply to Re^2: Score: Perl 1, Ruby 0
by Anonymous Monk
in thread Score: Perl 1, Ruby 0
by hackdaddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |