From: matz@... (Yukihiro Matsumoto) Date: 2002-03-29T13:47:58+09:00 Subject: Re: Dir.glob => Enumerable.glob? Hi, In message "Re: Dir.glob => Enumerable.glob?" on 02/03/29, Thomas S�ndergaard writes: |> Because Enumerable#each do not always give you string values. | |I suggest glob should do whatever grep does, only with shell like glob |expansion. grep sends to_s to values returned by Enumerable#each I guess. It's not what "grep" does. "grep" applies "===" method for each element of enumerable. You can use File.fnmatch method if you want wildcard match (1.7 only). matz.