new-words

view misc/notes2anki.pl @ 65:5a003076eb11

-w for web support (alpha)
author Igor Chubin <igor@chub.in>
date Tue Mar 27 14:09:25 2012 +0200 (2012-03-27)
parents
children
line source
1 while(<>) {
2 s/\@\S*//;
3 s/;/,/g;
4 my ($word, $notes) = split(/\s+/, $_, 2);
5 if ($notes) {
6 print $word," ; ", $notes;
7 }
8 }