> Dir.glob returns an array
> 
> irb(main):012:0> Dir.glob("2008*")
> => ["20080331", "2008abc", "2008def", "2008ghi"]
> 
> and you can (easily) subtract arrays by the "-" operator
> 
> irb(main):014:0> [1,2,3] - [3]
> => [1, 2]
> 
> so you can do something like
> 
> irb(main):015:0> Dir.glob("2008*") - ["20080331"]
> => ["2008abc", "2008def", "2008ghi"]


Exactly what i wanted! :)
Thanks and regards,
Clement
-- 
Posted via http://www.ruby-forum.com/.