/[webpac]/trunk2/all2all.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

Diff of /trunk2/all2all.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 370 by dpavlin, Thu Jun 17 17:25:12 2004 UTC revision 373 by dpavlin, Sun Jun 20 15:49:09 2004 UTC
# Line 13  use Carp; Line 13  use Carp;
13  use lib './lib';  use lib './lib';
14  use WebPAC;  use WebPAC;
15    
16    
17  my $webpac = new WebPAC(  my $webpac = new WebPAC(
18          code_page => 'ISO-8859-2',          code_page => 'ISO-8859-2',
19          limit_mfn => 500,          limit_mfn => 500,
20          debug => 1,  #       debug => 1,
21  ) || die;  ) || die;
22    
23    my $log = $webpac->_get_logger();
24    
25  $|=1;  $|=1;
26    
27  my $maxmfn = $webpac->open_isis(  my $maxmfn = $webpac->open_isis(
# Line 32  my $maxmfn = $webpac->open_isis( Line 35  my $maxmfn = $webpac->open_isis(
35          ],          ],
36  );  );
37    
38  print "rows: $maxmfn\n\n";  $log->info("rows: $maxmfn");
39    
40  $webpac->open_import_xml(type => 'isis_hidra_ths');  $webpac->open_import_xml(type => 'isis_hidra_ths');
41    
# Line 40  while (my $rec = $webpac->fetch_rec) { Line 43  while (my $rec = $webpac->fetch_rec) {
43    
44          my @ds = $webpac->data_structure($rec);          my @ds = $webpac->data_structure($rec);
45    
46            if ($log->is_debug) {
47                    $log->debug("rec = ",Dumper($rec));
48                    $log->debug("ds = ",Dumper(\@ds));
49            }
50    
51          print $webpac->output(          print $webpac->output(
52                  template => 'text.tt',                  template => 'text.tt',
53                  data => \@ds,                  data => \@ds,
# Line 47  while (my $rec = $webpac->fetch_rec) { Line 55  while (my $rec = $webpac->fetch_rec) {
55    
56  }  }
57    
58  print "## lookup ",Dumper($webpac->{'lookup'});  if ($log->is_debug) {
59  print "## data ",Dumper($webpac->{'data'});          $log->debug("lookup hash: ",Dumper($webpac->{'lookup'}));
60            $log->debug("data hash: ",Dumper($webpac->{'data'}));
61    }

Legend:
Removed from v.370  
changed lines
  Added in v.373

  ViewVC Help
Powered by ViewVC 1.1.26