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
>
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:
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;
>
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;
> >
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;
>
>
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_