From: Peter Bailey Date: 2006-08-15T21:57:37+09:00 Subject: Re: Trouble parsing against a hash James Gray wrote: > On Aug 14, 2006, at 11:42 AM, Peter Bailey wrote: > >> Hello, > > Hello. > >> I get the following error message from RUBY when I try to run the >> script >> shown below. Sorry, the hash is huge. > > Just FYI, the language is Ruby, not RUBY. ;) > > I found two problems with your code... > >> :wh650b1p => 'lrr000', :wh650b2p => 'lrr000 } > > That very last Hash entry is missing a closing quote. > >> File.fnmatch('#{key}*', #{psfile}) } > > I'm not 100% sure what was intended here, but the # character starts > a comment, causing the rest of the line, including a needed ) and }, > to be ignored. > > Hope that helps. > > James Edward Gray II Thanks, James. Sorry 'bout Ruby. I don't understand why my pound sign is a comment starter there, but, it's not prior to that in the same line. Isn't that a legitimate pointer to a variable, #{psfile} ? -- Posted via http://www.ruby-forum.com/.