in reply to Re: Re: OO 2 death?
in thread OO 2 death?

"he wouldn't let me have Monday and Tuesday be the same. I had to seperate those into seperate classes"

Aha! Rather than having seven different classes, you should have used one (over-simplified and untested code):

package Day; sub new { my ($class,$dayname) = @_; my $self = { day => $dayname }; return bless $self, $class; }
And then you instantiate them like so:
my @days = map { Day->new($_) } qw(Sun Mon Tue Wed Thur Fri Sat);
Sometimes you don't need seperate classes, just seperate object instantiations.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)