Hi All,
In the Chris P. book there is this code:
puts ‘What is your full name?’
name = gets.chomp
puts ‘Did you know there are ’ + name.length + ’ characters’
puts 'in your name, ’ + name + ‘?’
When I run that I get get this:
calc.rb:1: syntax error, unexpected tIDENTIFIER, expecting end-of-input
puts ‘Did you…pl name?’
I’m running this version:
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Thanks in advance,
Eric