/[Sack]/trunk/views/00.demo.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/views/00.demo.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (show annotations)
Sat Oct 3 21:43:34 2009 UTC (14 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 895 byte(s)
run simple view
1
2 #$out->{ 'fields +' }->{$_}++ foreach keys %$rec;
3
4 #$out->{ 'years +' }->{ $rec->{PY}->[0] }++;
5
6 #$out->{ 'DT +' }->{ $_ }++ foreach @{ $rec->{DT} };
7
8 #$out->{'SC +'}->{ $_ }++ foreach @{ $rec->{SC} };
9
10 # FIXME out of memory without Sack::Digest
11 #$out->{'C1 +'}->{ $_ }++ foreach @{ $rec->{C1} };
12 #$out->{'C1#+'}->{ digest($_) }++ foreach @{ $rec->{C1} };
13
14
15 $out->{'C1_country+'}->{ m{,\s+(\S+)\.$} && ucfirst(lc($1)) }++ foreach @{ $rec->{C1} };
16
17
18 #$out->{'CR#+'}->{ digest($_) }++ foreach @{ $rec->{CR} };
19
20 my $cr = 1;
21 my $nr = $out->{_debug}->{nr}++;
22 #$out->{'CR +'}->{ "$nr." . $cr++ }++ foreach @{ $rec->{CR} };
23
24 # XXX dump first record
25 #$out->{_debug_rec} ||= $rec;
26
27 #push @{ $out->{TI} }, $rec->{TI};
28
29 #push @{ $out->{_debug}->{id} }, $rec->{'000'};
30
31 $out->{'_debug'}->{records}++;
32 $out->{'_debug'}->{start_t} ||= time;
33 $out->{'_debug'}->{duration} = time - $out->{'_debug'}->{start_t};

  ViewVC Help
Powered by ViewVC 1.1.26