C
Ciur Eugen
Hi everyone,
Below is a short and functioning program:
#!/usr/bin/ruby
def call_me
e = <<SOME
#
# this is a nice string!
#
SOME
e
end
puts call_me
It runs and displays string between SOME delimiters.
My question is why, if I add to first # (between SOME delim), like this
#!/usr/bin/ruby
def call_me
e = <<SOME
#@
# this is a nice string!
#
SOME
e
end
puts call_me
I got this error, in line with #@ sign:
syntax error, unexpected $undefined
Does #@ sign have a special meaning in ruby?
Below is a short and functioning program:
#!/usr/bin/ruby
def call_me
e = <<SOME
#
# this is a nice string!
#
SOME
e
end
puts call_me
It runs and displays string between SOME delimiters.
My question is why, if I add to first # (between SOME delim), like this
#!/usr/bin/ruby
def call_me
e = <<SOME
#@
# this is a nice string!
#
SOME
e
end
puts call_me
I got this error, in line with #@ sign:
syntax error, unexpected $undefined
Does #@ sign have a special meaning in ruby?