On Aug 14, 2006, at 12:42 PM, Peter Bailey wrote:
> File.fnmatch('#{key}*', #{psfile})

Your quotes are wrong.  I think this is what you are looking for:

File.fnmatch("#{key}*", psfile)