| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use Storable; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | # init dictionary | ||
| 5 | 1 | `rm -f Mandarin.dict`; | |
| 6 | 1 | my $dict = {pinyin => {}, | |
| 7 | chars => {}, | ||
| 8 | words => {}, | ||
| 9 | word_index => {}, | ||
| 10 | }; | ||
| 11 | 1 | store($dict, "Mandarin.dict"); | |
| 12 | |||
| 13 | 1 | ▶ | use eGuideDog::Dict::Mandarin; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | my $dict = {}; | |
| 15 | 1 | bless $dict, 'eGuideDog::Dict::Mandarin'; | |
| 16 | 1 | eGuideDog::Dict::Mandarin::update_dict($dict); | |
| 17 | |||