Created
November 27, 2013 17:20
-
-
Save fibo/7679509 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# | |
# Answer to http://mortoray.com/2013/11/27/the-string-type-is-broken/ | |
# | |
use strict; | |
use warnings; | |
use utf8; | |
use v5.18; | |
binmode(STDOUT, ":utf8"); | |
my $text = 'noël'; | |
say length $text; | |
my $txet = reverse $text; | |
say $txet; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment