File: dbm-process.pl

package info (click to toggle)
freecell-solver 3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,332 kB
  • sloc: ansic: 29,493; perl: 8,911; xml: 5,162; python: 1,124; sh: 777; ruby: 358; cpp: 304; makefile: 150
file content (18 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

my %found;
while (my $line = <ARGV>)
{
    if ($line =~ /\A([0-9A-F]+)\|/)
    {
        my $id = $1;
        if (! exists($found{$id}))
        {
            print $line;
            $found{$id} = undef();
        }
    }
}