Herkum has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone have any suggestions on how to do this?my $manager1 = Manager->new({ id => 1 }); my $manager2 = Manager->new({ id => 1 }); if ($manager1 eq $manager2) { print "They are the same object\n"; } else { print "They are different objects\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::Std problem
by rhesa (Vicar) on Dec 20, 2006 at 22:05 UTC | |
by herveus (Prior) on Dec 21, 2006 at 12:23 UTC | |
by Herkum (Parson) on Dec 21, 2006 at 13:20 UTC | |
|
Re: Class::Std problem
by duckyd (Hermit) on Dec 20, 2006 at 22:05 UTC | |
|
Re: Class::Std problem
by chargrill (Parson) on Dec 20, 2006 at 23:20 UTC | |
|
Re: Class::Std problem
by herveus (Prior) on Dec 21, 2006 at 12:13 UTC |