in reply to User-Defined Case Mappings
I'm curious as to how this handles multiple sections of the UTF space simultaneously, but nevermind that ;-)
First off, your print statement is after your return statement. It'll never execute under any circumstances.
Second, your $tim string isn't UTF8, so it's moot. Try decoding it into utf8 using the Encode module.
This is what I got to work:
Good luck,#!/usr/bin/perl use strict; use Encode; sub ToUpper { print "Here we are\n"; return<<END; 0061\t0063\t0041 END } #my $tim = "abcdef"; my $tim = Encode::decode('utf8',"abcdef"); my $t2 = uc($tim); print "[$t2]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: User-Defined Case Mappings
by graff (Chancellor) on Feb 24, 2009 at 02:58 UTC | |
|
Re^2: User-Defined Case Mappings
by timgreenwood (Initiate) on Feb 24, 2009 at 16:48 UTC |