From: Love U Ruby Date: 2013-02-14T21:46:37+09:00 Subject: Re: Confusion with Ruby command line options > Thank you very much! @Hans > > Can I set such `octal` or `$/` to as below ? > > carraige return (\r) > tab (\t) Come up with a solution as below : C:\>ruby -00 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Hi Hi here is: "\n\n" C:\>ruby -015 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' hi hi ^Z hi hi here is: "\r" C:\>ruby -011 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Hello ^Z Hello here is: "\t" C:\> Query: Couldn't understand how the "\t" and "\r" effecting the CODE output. Need help here. -- Posted via http://www.ruby-forum.com/.