#!/usr/bin/perl
-# TODO: skola <-> razred swap?
-
use warnings;
use strict;
use autodie;
while (my $row = $csv->getline ($fh)) {
$stat->{lines}->{$nr}++;
$stat->{ $file }->{lines}++;
- $row->[1] =~ s/\D+//g && print 'c1';
- $row->[2] =~ s/\D+//g && print 'c2';
+ $row->[1] =~ s/\D+//g && $stat->{corrupt}->{skola}->{$nr}++ && print 'c1';
+ $row->[2] =~ s/\D+//g && $stat->{corrupt}->{razred}->{$nr}++ && print 'c2';
my $id = join('-',
uc $row->[0],
$row->[1],