[Chicago-talk] A question of style: Class::Accessor

Jay Strauss me at heyjay.com
Sun Nov 23 18:07:24 CST 2003

Oh, one last thing.  though I'm not a speed freak, it does seem more
sensible to do $self->{...}, than doing $self->accessory, while inside the

----- Original Message -----
From: "Jay Strauss" <me at heyjay.com>
To: "chicago-pm" <chicago-talk at mail.pm.org>
Sent: Sunday, November 23, 2003 5:57 PM
Subject: [Chicago-talk] A question of style: Class::Accessor

> I'm using Class::Accessor (though why, I dunno, I'm overriding most every
> accessor and new).  Normally inside the class code it's OK to access the
> blessed structure directly, like $self->{...} (if the bless thing happens
> be a hash).  But if I use something like Class::Accessor which creates an
> internal data structure for me (granted I know it's a hash, and it's keys
> are the names for the accessors), is it still OK to do $self->{...} in the
> code?
> I could see this being a problem if the maintainer of Class::Accessor
> to change the internal structure to something else, though I don't know
> likely that is
> Jay
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk

More information about the Chicago-talk mailing list