File: wc.pl

package info (click to toggle)
vigor 0.016-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,700 kB
  • ctags: 3,859
  • sloc: ansic: 44,551; sh: 2,941; tcl: 1,544; makefile: 754; perl: 269; awk: 24; csh: 13
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;