in reply to Counting words
use strict; open (IN,"<in.txt") or die $!; while (<IN>) { print "$1\n" if (/^\s*((?:[^\s]+\s+){4})/); } close(IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting words
by zdog (Priest) on Sep 13, 2004 at 15:26 UTC | |
by jbware (Chaplain) on Sep 13, 2004 at 15:49 UTC |