ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/Utilities/HashDB.pm
(Generate patch)

Comparing COMP/SCRAM/src/Utilities/HashDB.pm (file contents):
Revision 1.1 by williamc, Thu Sep 16 14:54:21 1999 UTC vs.
Revision 1.2 by williamc, Fri Sep 17 15:40:26 1999 UTC

# Line 59 | Line 59 | sub deletedata {
59          # first get all the keys we want to delete
60          my @match=$self->_match(@keys);
61          foreach $i ( @match ) {
62          print $i;
62            splice ( @{$self->{datahash}}, $i, 1 );
63            splice ( @{$self->{datakey}}, $i, 1 );
64          }
# Line 85 | Line 84 | sub _match {
84          for ( $i=0; $i <= $#keys; $i++ ) {
85            undef @matchnew;
86            foreach $dn ( @matchold ){
87 <           if ( $self->{datakey}[$dn][$i] eq $keys[$i] ) {
88 <             push @matchnew,$dn;
89 <                #print "match at $dn $keys[$i]\n";
91 <           }
87 >            if ( $self->{datakey}[$dn][$i] eq $keys[$i] ) {
88 >                push @matchnew,$dn;
89 >            }
90            }
91            @matchold=@matchnew;
92          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines