in reply to Re^2: How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
in thread How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
but you were probably aware of this :-)#!/usr/bin/perl -w use strict; my $count = 0; $count += () = /\band\b/ig while <>; print "$count\n";
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
by Aristotle (Chancellor) on Jan 28, 2003 at 12:32 UTC |