perlquestion
Anonymous Monk
Hello Monks!
<p>I'm trying to set words in a mixed case format. The cpan <a href=http://search.cpan.org/~summer/Lingua-EN-NameCase-1.13/NameCase.pm>NameCase </a> module seems interesting but it doesn't seem to handle german umlauts. I'm wondering if there is another way. When I use perl's lc on it. Most of the word is lowercased except for the umlaut. Any tips?
<code>
#!/usr/local/bin/perl -w
use strict;
use Lingua::EN::NameCase 'nc';
print nc("BAESCHGÄSSEL") . "\n"; #not ok
print lc("BAESCHGÄSSEL") . "\n"; #Better uppercase umlaut
</code>
The output is:
<p>
BAESCHGÄSSEL<p>
baeschgÄssel<p>
4