Hello,
I've been working with here documents today and ran into some odd
behavior. If I place @#@# in the here document I get a SyntaxError. If
I put a space between the @#'s it works as I'd expect.
prubel@cornet /tmp> cat /tmp/st.rb
#!/usr/bin/env ruby
aString = <<END
@#@#
END
prubel@cornet /tmp> /tmp/st.rb
/tmp/st.rb:4: compile error in string expansion (SyntaxError)
/tmp/st.rb:4: parse error
prubel@cornet /tmp>
I tried it on both 1.6.2 and 1.6.5 under linux and they showed the
same behavior. It's probably a nut loose on the keyboard though :)
I'd be appreciative if anyone could explain this to me.
thank you,
Paul