From: Peter Bailey Date: 2011-07-27T20:02:04+09:00 Subject: Re: What's up with "Dir.glob"? Ryan Davis wrote in post #1012498: > On Jul 22, 2011, at 12:22 , Peter Bailey wrote: > >> Dir.glob("{wdp*.pdf,wrr*.pdf,wip*.pdf,wsl*.pdf,wcr*.pdf}").each do > > This doesn't address your issue, but I thought I'd point out that you > might rather have: > > Dir.glob("{wdp,wrr,wip,wsl,wcr}*.pdf") > > or even: > > Dir.glob("w{dp,rr,ip,sl,cr}*.pdf") > > I can't see anything wrong with your original code tho... so yeah, I'd > prolly guess name casing as well. Thanks. Well, that's a good point. Although, all of the incoming names so far have been lower-case. I didn't realize that Dir.glob was case sensitive. Is there a way to flag it to be case insensitive? Peter -- Posted via http://www.ruby-forum.com/.