From: Love U Ruby Date: 2013-02-14T21:01:13+09:00 Subject: Re: Confusion with Ruby command line options Hans Mackowiak wrote in post #1096880: > its because #{$/} uses to_s but you need the inspected stuff > #{$/.inspect} > > > ruby -00 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' > R > R > here is: "\n\n" > > ruby -0777 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' > E > E > here is: nil > > ruby -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' > Z > Z > here is: "\n" Thank you very much! @Hans Can I set such `octal` or `$/` to as below ? carraige return (\r) tab (\t) -- Posted via http://www.ruby-forum.com/.