File: wc.pl

package info (click to toggle)
nvi 1.81.6-8.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 10,788 kB
  • sloc: ansic: 43,561; sh: 16,093; makefile: 639; perl: 262; tcl: 234; awk: 19
file content (11 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
sub wc {
  my $words;
  $i = $VI::StartLine;
  while ($i <= $VI::StopLine) {
    $_ = $curscr->GetLine($i++);
    $words+=split;
  }
  $curscr->Msg("$words words");
}

1;