in reply to Re: 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?
#!/usr/bin/perl -w use strict; my $count = 0; $count += /\band\b/g while <>; print "$count\n";
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
by robartes (Priest) on Jan 28, 2003 at 12:28 UTC | |
by Aristotle (Chancellor) on Jan 28, 2003 at 12:32 UTC |