File: slova.p

package info (click to toggle)
ispell-czech 20010104-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,800 kB
  • ctags: 4
  • sloc: perl: 646; sh: 61; makefile: 49
file content (12 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (9)
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";
    }
  }
}