On Apr 21, 2007, at 2:20 PM, Larme wrote:
<snip>
> 1
> 2 data=[]
> 3 counter = 0
> 4 while line = STDIN.gets
> 5   data[counter] = line.split
> 6   data[counter].map! {|str| str.to_i}
> 7   counter += 1
> 8 end

Ok, so I'm a noob trying to learn something here...

Shouldn't line 4 be presented with a double = (==) since you're  
trying do something while line == STDIN.gets?

Also, does STDIN.gets need to be stated in a previous line? Or will  
it be prompted from within the 'while' statement.

<snip>
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.