Panagiotis Atmatzidis wrote in post #1135144:
> Hello,
>
> didn't run the code but when using interpolation you have to use ""
> (double quotes) and not '' (single quotes) like:
>
> Dir.glob ["*.#{ext}"] instead of Dir.glob ['*.#{ext}']

Oh my god, thank you very much.

I tried all possible combination but how could i not think of that. Once 
again, thanks.

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