Report abuse

eval <<-EOM
for i in [1, 2, 3]
  p i
end

p i
EOM

# should output
# 1
# 2
# 3
# 3