RE: bless question

2003-01-12 Thread Burak Gürsoy
okie dokie... It looks like I misunderstood something. Thanks :) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf > Of Alan Dickey > Sent: Sunday, January 12, 2003 1:54 AM > Cc: Perl-Win32-Users > Subject: Re: bless question >

Re: bless question

2003-01-11 Thread Alan Dickey
Alan Dickey wrote: > > Burak Gürsoy wrote: > > > > But I dont use bless on the first object, create a clone of it an use bless > > on the second one > > and return this second one. It looks like a bug to me. maybe I can be more helpful. To clone the first hash in the second constructor, try this:

Re: bless question

2003-01-11 Thread Alan Dickey
Burak Gürsoy wrote: > > But I dont use bless on the first object, create a clone of it an use bless > on the second one > and return this second one. It looks like a bug to me. ok, let me try again. > #!/usr/bin/perl -w > use strict; > package Test::One; > > sub new { >my $class = shift; >

RE: bless question

2003-01-11 Thread Burak Gürsoy
12, 2003 12:22 AM > Cc: Perl-Win32-Users > Subject: Re: bless question > > > Burak Gürsoy wrote: > > > > Can anyone explain this? is this a bug or feature? > > > > what were you expecting> > > > #!/usr/bin/perl -w > > use strict; > >

Re: bless question

2003-01-11 Thread Alan Dickey
Burak Gürsoy wrote: > > Can anyone explain this? is this a bug or feature? > what were you expecting> > #!/usr/bin/perl -w > use strict; > package Test::One; > > sub new { >my $class = shift; >my $self = {}; >bless $self, $class; >return $self; > } > > package Test::Two; > >

bless question

2003-01-11 Thread Burak Gürsoy
Can anyone explain this? is this a bug or feature? #!/usr/bin/perl -w use strict; package Test::One; sub new { my $class = shift; my $self = {}; bless $self, $class; return $self; } package Test::Two; sub new { my $class = shift; my $test_it = shift; my $self= $test_