minix/external/bsd/nvi/dist/perl_scripts/wc.pl

12 lines
171 B
Perl
Raw Normal View History

sub wc {
my $words;
$i = $VI::StartLine;
while ($i <= $VI::StopLine) {
$_ = $curscr->GetLine($i++);
$words+=split;
}
$curscr->Msg("$words words");
}
1;