--- nfo/perl/libs/Data/Mungle/Compare/Struct.pm 2003/03/27 15:17:05 1.5 +++ nfo/perl/libs/Data/Mungle/Compare/Struct.pm 2004/07/07 03:13:43 1.7 @@ -1,7 +1,14 @@ ## -------------------------------------------------------------------------------- -## $Id: Struct.pm,v 1.5 2003/03/27 15:17:05 joko Exp $ +## $Id: Struct.pm,v 1.7 2004/07/07 03:13:43 joko Exp $ ## -------------------------------------------------------------------------------- ## $Log: Struct.pm,v $ +## Revision 1.7 2004/07/07 03:13:43 joko +## minor fix for "sub isEmpty" +## +## Revision 1.6 2004/05/12 13:53:19 jonen +## + bugfix related to declaration of arrays, +## solved error: 'Bizarre copy of ARRAY in aassign at...' +## ## Revision 1.5 2003/03/27 15:17:05 joko ## namespace fixes for Data::Mungle::* ## @@ -41,7 +48,17 @@ my @a = @{$a_ref}; my @b = @{$b_ref}; - my @isect = my @diff = my @union = (); + # BUGFIX 2004-05-12: following declaration of arrays occures an strange perl error: + # 'Bizarre copy of ARRAY in aassign at ../ line ' + # (at PERL 5.8.4, Debian/unstable/experimental) + # + #my @isect = my @diff = my @union = (); + # + # so use normal declaration instead!! + my @isect = (); + my @diff = (); + my @union = (); + my $e; my %count; @@ -142,9 +159,10 @@ return $empty; #return 0; - } else { + # check for empty string + } elsif (defined $var) { $found = 1; - return 0 if defined $var; + return 0 if $var ne ''; } if (!$found) {