/[webpac2]/trunk/lib/WebPAC/Normalize.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 /trunk/lib/WebPAC/Normalize.pm

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

revision 260 by dpavlin, Fri Dec 16 14:40:55 2005 UTC revision 261 by dpavlin, Fri Dec 16 16:00:18 2005 UTC
# Line 301  but, filters can also have variable numb Line 301  but, filters can also have variable numb
301    
302  =cut  =cut
303    
304    my $warn_once;
305    
306  sub parse {  sub parse {
307          my $self = shift;          my $self = shift;
308    
# Line 381  sub parse { Line 383  sub parse {
383                          $out = $self->{'filter'}->{$filter_name}->(@filter_args);                          $out = $self->{'filter'}->{$filter_name}->(@filter_args);
384                          return unless(defined($out));                          return unless(defined($out));
385                          $log->debug("filter result: $out");                          $log->debug("filter result: $out");
386                  } else {                  } elsif (! $warn_once->{$filter_name}) {
387                          $log->warn("trying to use undefined filter $filter_name");                          $log->warn("trying to use undefined filter $filter_name");
388                            $warn_once->{$filter_name}++;
389                  }                  }
390          }          }
391    

Legend:
Removed from v.260  
changed lines
  Added in v.261

  ViewVC Help
Powered by ViewVC 1.1.26