From: nobu.nokada@... Date: 2003-02-09T05:43:15+09:00 Subject: Re: irb idea: return value history Hi, At Sat, 8 Feb 2003 21:09:30 +0900, Chris Pine wrote: > Here's a made-up irb session I wish I could have: Try conf.eval_history. irb(main):005:0> conf.eval_history=100 => 100 irb(main):006:0> conf.eval_history => 100 irb(main):007:0> __ => 5 100 6 100 irb(main):008:0> 1+2 => 3 irb(main):009:0> _ => 3 irb(main):010:0> __ => 5 100 6 100 7 ...self-history... 8 3 9 3 irb(main):011:0> __[2] => nil irb(main):012:0> a = "abc" => "abc" irb(main):013:0> a.sub(/a/,"z") => "zbc" irb(main):014:0> __ => 5 100 6 100 7 ...self-history... 8 3 9 3 10 ...self-history... 11 nil 12 "abc" 13 "zbc" -- Nobu Nakada