On 10/30/01 12:13 PM, Brent Dax wrote: > John Siracusa: > Please note that these are my best guesses; I'm not a Damian ;^). > > # $obj.colors('red', 'green', 'blue'); > # > # $obj.colors = ('red', 'green', 'blue'); > # > # $obj.colors = ['red', 'green', 'blue' ]; > > $obj.colors=('red', 'green', 'blue');
No no, I wasn't presenting alternatives. I want all of those to work! :) (Okay, well at least "most" :) > # # Change apple color, but leave the blue berry > # $obj.fruit(apple => 'green'); > # > # print $obj.fruit('apple'); # green > > $obj.fruit{apple} Icky, looks "unencapsulated" to me :) -John