home *** CD-ROM | disk | FTP | other *** search
- #!/cs/public/bin/perl
- #
- # sigcheck -- check signatures of pictures to see if they could be the
- # same.
- #
- # Reads a list of signatures with <>. Typical usage will be to take a list
- # of new signatures and a list of old signatures and spit out the duplicates.
-
- while (<>) {
- if (!/\[(\d+)\]/) {
- # print "ignoring: ";
- # print;
- next;
- }
- $s = $1;
- if ($sig_got{$s} == 1) {
- print "\n";
- print;
- print $info{$s};
- }
- else {
- $sig_got{$s} = 1;
- $info{$s} = $_;
- }
- }
-