timgreenwood has asked for the wisdom of the Perl Monks concerning the following question:
I want to use simple Unicode case mapping and not the default full case mapping. The entry in http://perldoc.perl.org/perlunicode.html#User-Defined-Case-Mappings looked to be the way to go.
However a small test program#!/usr/bin/perl use strict; sub ToUpper { return<<END; 0061\t0063\t0044 END print "Here we are\n"; } my $tim = "abcdef"; my $t2 = uc($tim); print "$t2\n";
does not give the expected result, just the normal uc output. The print statement is not executed so ToUpper is not even called.
What am I doing wrong? If anyone already has simple case mapping already implemented then that would be nice also.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: User-Defined Case Mappings
by Tanktalus (Canon) on Feb 23, 2009 at 23:57 UTC | |
by graff (Chancellor) on Feb 24, 2009 at 02:58 UTC | |
by timgreenwood (Initiate) on Feb 24, 2009 at 16:48 UTC | |
|
Re: User-Defined Case Mappings
by graff (Chancellor) on Feb 24, 2009 at 01:38 UTC | |
by timgreenwood (Initiate) on Feb 24, 2009 at 17:05 UTC | |
|
Re: User-Defined Case Mappings
by kennethk (Abbot) on Feb 23, 2009 at 22:57 UTC |