/[webpac]/trunk2/lib/WebPAC/Index.pm
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/lib/WebPAC/Index.pm

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

revision 411 by dpavlin, Sun Sep 5 22:22:37 2004 UTC revision 448 by dpavlin, Wed Sep 15 16:53:51 2004 UTC
# Line 54  sub new { Line 54  sub new {
54  Insert data into index  Insert data into index
55    
56   $index->insert(   $index->insert(
         path => 'path',  
57          headline => 'headline text',          headline => 'headline text',
58            mfn => '99',
59   );   );
60    
61  =cut  =cut
# Line 67  sub insert { Line 67  sub insert {
67    
68          my $log = $self->_get_logger();          my $log = $self->_get_logger();
69    
70          $log->logconfess("need path and headline!") unless (defined($data->{'path'}) && defined($data->{'headline'}));          $log->logconfess("need headline and mfn!") unless (defined($data->{'headline'}) && defined($data->{'mfn'}));
71    
72          push @{$self->{'index'}}, $data;          push @{$self->{'index'}}, $data;
73    
74          $log->debug("stored path: ",$data->{'path'}," headline: ",$data->{'headline'});          $log->debug("stored ",$data->{'mfn'},": ",$data->{'headline'});
75    
76  }  }
77    

Legend:
Removed from v.411  
changed lines
  Added in v.448

  ViewVC Help
Powered by ViewVC 1.1.26