File: slova.p

package info (click to toggle)
ispell-czech 20040229-5.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,588 kB
  • ctags: 5
  • sloc: perl: 703; makefile: 76; sh: 43
file content (12 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use locale;

while (<>) {
  chomp;
  while ($_=~s/^\W*(\w+)\W*//) {
    $word=$1;
    if ($word) {
      print $word, "\n";
    }
  }
}