Re: Class::Struct comparison & MOP

2011-03-07 Thread Sam Steingold
Hi Shlomi, Thanks for your kind reply. > * Shlomi Fish [2011-03-04 20:37:51 +0200]: > On Friday 04 Mar 2011 18:47:40 Sam Steingold wrote: >> 1 How do I compare Class::Struct instances (objects) >> for equality (or precedence)? >> >> E.g., >> >&g

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. then

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. t

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. t