John Joyce wrote:
> On Jul 24, 2007, at 8:09 AM, Peter Bailey wrote:
> 
>> Whew. Obviously, I must have something wrong with my Boolean  
>>  Dir.chdir("L:/tiff/cdtiff/#{tifdir}")
>> -- 
>> Posted via http://www.ruby-forum.com/.
>>
> Try using two Dir.globs
> one for an array of  tiffs and one for an array of pdfs
> then use Array#include? to compare one array's elements to the other
> array by basename only.
> create an array of matches or an array of non matches or both
> use Array.collect to create the new array of pairs.
> While you do that delete them from the previous arrays.
> Output the 3 arrays and you have your pairs and non pairs.

Thanks a lot. Yes, your suggestion in an intelligent one. My headspace 
expands every day with Ruby! Thanks again.

-Peter
-- 
Posted via http://www.ruby-forum.com/.