> > But on the string answer of your question: > > img.each do |img| > > p img > > end > > > > Does that mean that p will be a variable that will hold all the image > > names? BTW: The example may be slightly confusing, in using the same variable name for the array of all image filenames as for the string holding a single filename. It can be rewritten like this: images=Dir["*.jpg"] images.each do |img| p img end Here, 'images' is an array (list/collection) of all image file names, 'img' is a string holding a single filename. jf