Regexp::LogRegexp::Log is a Perl base class for log files regexp builders. | |
Download |
Regexp::Log Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Philippe Bruhat
- Publisher web site:
- http://search.cpan.org/~book/Net-Proxy-0.07/script/sslh
Regexp::Log Tags
Regexp::Log Description
Regexp::Log is a Perl base class for log files regexp builders. Regexp::Log is a Perl base class for log files regexp builders.SYNOPSIS my $foo = Regexp::Log::Foo->new( format => 'custom %a %b %c/%d', capture => , ); # the format() and capture() methods can be used to set or get $foo->format('custom %g %e %a %w/%s %c'); $foo->capture(qw( host code )); # this is necessary to know in which order # we will receive the captured fields from the regexp my @fields = $foo->capture; # the all-powerful capturing regexp :-) my $re = $foo->regexp; while () { my ta; @data{@fields} = /$re/; # no need for /o, it's a compiled regexp # now munge the fields ... }Requirements:· Perl
Regexp::Log Related Software