From: Daniel Carrera Date: 2003-08-30T03:49:40+09:00 Subject: Re: Bug? (1.8.0) > That's interesting and syntactically subtle. > > Here are the facts the explain this: > 1. Regexes can have interpolated values just like strings > 2. When an expression is a single name and that name starts > with a special symbol like @, @@, or $, the braces can > be omitted > 3. $/ is one of the ugly special variables > 4. So #$/ is interpreted as inserting the value of $/ into > the regex > 5. The regex then consumes the rest of the line > 6. The interpreter apparently does not distinguish between > strings and regular expressions when reporting that > something is unterminated. I'm not sure I followed that. Can you explain to me how 1-6 explain this?: >> p "#$" SyntaxError: compile error (irb):22: unterminated string meets end of file from (irb):22 -- Daniel Carrera, Math PhD student at UMD. PGP KeyID: 9AF77A88 .-"~~~"-. / O O \ ATTENTION ALL PASCAL USERS: : s : \ \___/ / To commemorate the anniversary of Blaise Pascal's `-.___.-' birth (today) all your programs will run at half speed.