#!/usr/bin/ruby # # Run as: ruby ch-1.rb < input-file # ARGF . each_line do |_| puts (eval _) end