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

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

revision 4 by dpavlin, Sat Jul 16 12:37:18 2005 UTC revision 6 by dpavlin, Sat Jul 16 14:44:38 2005 UTC
# Line 22  our $VERSION = '0.01'; Line 22  our $VERSION = '0.01';
22  my $LOOKUP_REGEX = 'lookup{[^\{\}]+}';  my $LOOKUP_REGEX = 'lookup{[^\{\}]+}';
23  my $LOOKUP_REGEX_SAVE = 'lookup{([^\{\}]+)}';  my $LOOKUP_REGEX_SAVE = 'lookup{([^\{\}]+)}';
24    
25    =head1 SYNOPSYS
26    
27    This module defines common functions, and is used as base for other, more
28    specific modules.
29    
30     my $webpac = new WebPAC::Common(
31            filter => {
32                    'filter_name_1' => sub {
33                            # filter code
34                            return length($_);
35                    }, ...
36            },
37      }
38    
39  =head1 FUNCTIONS  =head1 FUNCTIONS
40    
# Line 234  This function will init C<Log::Log4perl> Line 247  This function will init C<Log::Log4perl>
247    
248    $webpac->_init_logger('/path/to/log.conf');    $webpac->_init_logger('/path/to/log.conf');
249    
250    If no path to configuration file is given, dummy empty configuration
251    will be create.
252    
253  =cut  =cut
254    
255  sub _init_logger {  sub _init_logger {

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26