From: Robert Klemme Date: 2010-10-20T20:28:51+09:00 Subject: Re: Removing files if those exists 2010/10/20 Une Bévue : > Robert Klemme wrote: > >> File.unlink(*Dir["junk*.c[sv]"]) > ______________^___________________ > > where did u find this "*" syntax ? > really fine ! Which star do you mean, the first one or the second one? I can't really tell in my mail reader since Google Mail at some point dropped the "show in fixed width font" option. First one: That's the splash operator which in this case unrolls an array argument to multiple method arguments. Second one: Ruby's documentation is bad in places - but not that bad. Try ri19 'Dir.[]' ri19 'Dir.glob' Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/