In ruby, is there a way to get a handle of an object reference?
 In perl, this is the \ operator:

$x = 1; # \$x is a handle to change $x
$a = [1,2,3]; # \$a->[1] is a handle to change an element in $a

As far as I can tell, the closest that Ruby has to this is a
symbol.  But, this only works for object references that have
an associated variable name.  For example, there is no symbol
associated with an element of an array (or hash).



		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html