Just another Perl shrine | |
PerlMonks |
Re: Practice your Hiragana with Image::Magickby benizi (Hermit) |
on Feb 23, 2005 at 16:44 UTC ( [id://433759]=note: print w/replies, xml ) | Need Help?? |
$text was undefined at one point at which it was used, in sub main. I think this fixes it. Replace:
With:
Also, since you invited comments/criticisms, I would rewrite your "pick a few" section as: my @romaji = map { splice @syllables, int(rand @syllables), 1 } 1..25;Other useful resources: Unicode Code page for Hiragana which I used (and I assume you did, too), along with charnames to simplify your %Hiragana generation:
Very cool use of Perl. Brings me back to my Nihongo days...
In Section
Cool Uses for Perl
|
|