From: SpringFlowers AutumnMoon Date: 2007-10-19T17:32:53+09:00 Subject: Re: the level of Ruby programmers vs PHP's Shuaib Zahda wrote: > do you mean something like this > > def print_name_variable(var) > print 'var = ' > print var > end oh i mean something like print_debug($foo) will print $foo is 3 so if i have 20 expressions, like print_debug(2**3) print_debug(8**(1.0/3)) print_debug(a + 2.038) [...] it will print out the expression as well as the value at the same time, as a convenience for testing and for debugging. -- Posted via http://www.ruby-forum.com/.