From: matz@... (Yukihiro Matsumoto) Date: 2002-02-26T16:32:14+09:00 Subject: Re: Question with for loop Hi, In message "Question with for loop" on 02/02/26, Steve Shreeve writes: |But, I'm not sure if there is anything like this in Ruby. Are there major |scoping issues why something like this will never be valid? Yes. Ruby's local variables should be "declared" before their access. In your example, |b.rpc("ORWORDG IEN", [val]) for val in ['O RX', 'I RX', 'UD RX', 'IV RX'] the variable "val" is used before its "declaration" (for val). Ruby cannot tell if the first "val" is a variable or not. matz.