APM: Just need structs
Jason Bodnar
jason at shakabuku.org
Thu Sep 13 10:42:40 PDT 2007
http://search.cpan.org/~nwclark/perl-5.8.8/lib/Class/Struct.pm
I've never used it but it looks like it's part of the perl dist.
On Thu, 13 Sep 2007 11:42:36 -0500 (CDT), Tim McDaniel wrote
> On Thu, 13 Sep 2007, Taylor Carpenter <taylor at codecafe.com> wrote:
> > If the 3 structs you need all have the same 2 fields
>
> No, no -- three different types with many instances each, not one
> type with three instances.
>
> > package Person;
> >
> > sub new {
> > my $self = {};
> > $self->{name} = undef;
> > $self->{age} = 0;
> > $self->{favorite_foods} = [];
> > bless($self);
> > return $self;
> > }
>
> Thanks. Looks like "man perlobj", without inheritance and
> "$obj->new()".
>
> --
> Tim McDaniel, tmcd at panix.com
> _______________________________________________
> Austin mailing list
> Austin at pm.org
> http://mail.pm.org/mailman/listinfo/austin
--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org
More information about the Austin
mailing list