From: Stefano Crocco Date: 2010-09-29T22:23:04+09:00 Subject: Re: unknown regexp options On Wednesday 29 September 2010, Gary Rutledge wrote: > |The content of the file is just: > | > |puts "test" > | > |The irb session is: > |>> load /Users/gary/Desktop/test.rb > | > |SyntaxError: compile error > |(irb):3: unknown regexp options - gary > | from (irb):3 > | > | > |The .rb file was written in textedit with no rich text. I was using > |netbeans and my theory was that netbeans was throwing in some meta data > |with the file location that ruby was picking up and processing as a > |regular expression. But textedit is the same so I don't think that's the > |problem. The path of the file should be a string: load '/Users/gary/Desktop/test.rb' Stefano