title: Ruby unexpected kEND, expecting $end
body: <pre><code>require 'open-uri'
  print "Enter a URL"
  add = gets
  open(#{add}) do |f|
    j = f.read.scan(/&lt;img/)
    jlen = j.length
    puts jlen
  end
  </code></pre>
  
  <p>Is the code I have.
  For some reason, ruby is giving me the error:<code>findimages.rb:8: syntax error, unexpected kEND, expecting $end</code>
  Why is this?</p>