Hi,

Trans wrote:
> Has anyone else every wished #p would passthru it's argument? Ie. Work
> like this:
> 
>   def p(x)
>     puts x.inspect
>     x
>   end
 
% ruby -ve 'p "foo".gsub("o"){p "a"}'
ruby 1.9.0 (2007-08-28 patchlevel 0) [i386-linux]
"a"
"a"
"faa"