Tugger the SLUGger!SLUG Mailing List Archives

Re: [coders][NRS] 1st night

Benno wrote:

Sorry, I'm still confused. I must be thick or something. I don't
understand ruby order of operation. Is this the logical equivilant of
(in pseudo ruby-python):

if not $stdin.eof
 puts $stdin.readlines.sort_by {rand}

Or is it something more subtle than that? Also I'm confused about
something in ruby is $stdin.eof a method, or a variable (or is there
no difference?)

I'm sorry I can't explain more than I did already. I'm a newbie in ruby and

python. Maybe you can explain this pseudo ruby-python thing.

O Plameras