… | |
… | |
918 | |
918 | |
919 | =cut |
919 | =cut |
920 | |
920 | |
921 | ############################################################################# |
921 | ############################################################################# |
922 | # object support |
922 | # object support |
|
|
923 | # |
|
|
924 | |
|
|
925 | sub _can_merge { |
|
|
926 | my ($ob1, $ob2) = @_; |
|
|
927 | |
|
|
928 | local $Storable::canonical = 1; |
|
|
929 | my $fob1 = Storable::freeze $ob1; |
|
|
930 | my $fob2 = Storable::freeze $ob2; |
|
|
931 | |
|
|
932 | $fob1 eq $fob2 |
|
|
933 | } |
923 | |
934 | |
924 | sub reattach { |
935 | sub reattach { |
925 | # basically do the same as instantiate, without calling instantiate |
936 | # basically do the same as instantiate, without calling instantiate |
926 | my ($obj) = @_; |
937 | my ($obj) = @_; |
927 | |
938 | |