in reply to Upper-casing characters above Hex FF.

For your sample, you could do this:

my $aaa = "aáeéiíoóuúoöuü"; open my $fh, '>', 'tmp.txt' or die "Can't open file $!"; my @aaa = split //, $aaa; print $fh chr( ord($_) - 32 ) for @aaa;

Note that I only print to a file because I'm on Windows, which has its own character coding in the CMD window...

But this solution won't always work (try 'ÿ' for example...)

So, Unicode is your friend ;-)

dave

Replies are listed 'Best First'.
Re: Re: Upper-casing characters above Hex FF.
by Anonymous Monk on Jan 13, 2004 at 09:06 UTC
    That won't work too well.
    use open IN  => ":crlf", OUT => ":bytes";
    use open OUT => ':utf8';
    use open IO  => ":encoding(iso-8859-7)";
    
    use open IO  => ':locale';
    
    use open ':utf8';
    use open ':locale';
    use open ':encoding(iso-8859-7)';