NAME

Meta::Utils::Text::Counter - counter number of regexp matches in a file.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Counter.pm
PROJECT: meta
VERSION: 0.01

SYNOPSIS

package foo;
use Meta::Utils::Text::Counter qw();
my($number_of_games)=Meta::Utils::Text::Counter::count("mypgnfile.pgn","Event");

DESCRIPTION

This module helps you to quickly count the number of appearances of a certain regexp in a certain file.

FUNCTIONS

count($$)
TEST($)

FUNCTION DOCUMENTATION

count($$)

This method receives: 1. file - file to grep in. 2. regexp - regexp to look for.

TEST($)

A test suite for this module. The idea is to count number of games in a GNU pgn game.

SUPER CLASSES

None.

BUGS

None.

AUTHOR

Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER

HISTORY

0.00 MV web site automation
0.01 MV SEE ALSO section fix

SEE ALSO

Meta::Baseline::Aegis(3), Meta::Utils::Output(3), Meta::Utils::Parse::Text(3), strict(3)

TODO

Nothing.