On 10/30/01 5:12 PM, Damian Conway wrote:
>>     # Change apple color, but leave the blue berry
>>     $obj.fruit(apple => 'green');
> 
> No. You want:
> 
> $obj.fruit{apple} = 'green';

Hm, I think I'll be writing arg-type versions of that one because I'm not
too comfortable with exposing the fact that there's a hash in there.  I
guess a later implementation of the class could use a tied hash to get
around it, but...eh.

All the rest sounds sweet :)

-John

Reply via email to