Gavin,

Sorry, just see the & in the faq, but *name is not there?

for the &, I don't know why we need &? It seems to be used for Iterators 
with a block? I wrote the following code in my program:

def test(source)
  namelist=[]
  source.each do |s|
    namelist << s
    yield s
  end
  return namelist
end
nl=test(anArray) do |a|
     print a,"\n"
   end

Will this code work? i.e., the iterator will work, and an array will be 
returned to nl? I am not very clear how to write a method that both return a 
value and accept a block? Is it related to the use of & ?

Thanks!
Shannon

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail