From: Austin Ziegler Date: 2004-06-09T02:41:51+09:00 Subject: Re: How can I use the last returned value? Sam Sungshik Kong [mailto:ssk@chol.nospam.net] : > Hello! > > In Python, I use '_'(underscore) for the last returned value. > >> > print "Hello" > "Hello" > >> > x = _ > >> > print x > "Hello" > > What is the equivalent in Ruby? I'm not sure there is one. There is the $_ variable, but I have yet to use it in my Ruby. Be warned, though, that print/puts don't return the printed value, but rather return +nil+. irb(main):010:0> puts "Hello" Hello => nil -austin -- austin ziegler * austin.ziegler@evault.com