[BACK]Return to example3.pl CVS log [TXT][DIR] Up to [local] / palm / Palm-Keyring / examples

Diff for /palm/Palm-Keyring/examples/example3.pl between version 1.8 and 1.9

version 1.8, 2008/02/27 23:54:02 version 1.9, 2008/02/28 00:17:33
Line 1 
Line 1 
 #!/usr/bin/perl  #!/usr/bin/perl
 # $RedRiver: example3.pl,v 1.7 2007/12/04 03:37:48 andrew Exp $  # $RedRiver: example3.pl,v 1.8 2008/02/27 23:54:02 andrew Exp $
 ########################################################################  ########################################################################
 # palmkeyring.pl *** a command line client for Keyring databases.  # palmkeyring.pl *** a command line client for Keyring databases.
 #  #
Line 94 
Line 94 
   
 sub show_items  sub show_items
 {  {
         get_password() || die "Couldn't decrypt file!";  
   
         foreach (0..$#{ $pdb->{'records'} }) {          foreach (0..$#{ $pdb->{'records'} }) {
         my $r = $pdb->{'records'}->[$_];          my $r = $pdb->{'records'}->[$_];
   
Line 110 
Line 108 
                         $matched++ if uc($r->{plaintext}->{0}->{data}) eq uc($name);                          $matched++ if uc($r->{plaintext}->{0}->{data}) eq uc($name);
                 }                  }
                 next if ( @{ $Categories } || @{ $Names } ) && not $matched;                  next if ( @{ $Categories } || @{ $Names } ) && not $matched;
   
               get_password() || die "Couldn't decrypt file!";
   
         my $a = $pdb->Decrypt($r);          my $a = $pdb->Decrypt($r);
         $matched = 0;          $matched = 0;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>