Created
June 30, 2016 14:22
-
-
Save bduggan/752a737ecea87700208709a43003a29f to your computer and use it in GitHub Desktop.
This file contains 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 perl6 | |
my \x = "mütter"; | |
my \y = "mütter"; | |
if x eq y { | |
say "same" | |
} else { | |
say "different" | |
} | |
say x.chars; | |
say y.chars; | |
# same | |
# 6 | |
# 6 | |
This file contains 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 | |
use v5.20; | |
use utf8; | |
my $x = "mütter"; | |
my $y = "mütter"; | |
if ( $x eq $y ) { | |
say "same" | |
} else { | |
say "different" | |
} | |
say length($x); | |
say length($y); | |
# different | |
# 6 | |
# 7 | |
This file contains 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 python | |
#-*- encoding: utf8 -*- | |
x = "mütter"; | |
y = "mütter"; | |
if x == y: | |
print "same" | |
else: | |
print "different" | |
print len(x) | |
print len(y) | |
# different | |
# 7 | |
# 8 | |
This file contains 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 ruby | |
x = "mütter"; | |
y = "mütter"; | |
if x == y | |
puts "same" | |
else | |
puts "different" | |
end | |
puts x.length | |
puts y.length | |
# different | |
# 6 | |
# 7 | |
This file contains 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
ü |
This file contains 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
ü |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment