From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
|
die "This file is not encoded in Cyrillic.\n" if q{ } ne "\x82\xa0" ;
print "1..2\n" ;
my $__FILE__ = __FILE__;
my $s = "The black cat climbed the green tree" ;
my $z = Cyrillic:: substr $s , 14, 7, "jumped from" ;
if ( $z eq 'climbed' ) {
print "ok - 1 $^X $__FILE__\n" ;
}
else {
print "not ok - 1 $^X $__FILE__\n" ;
}
if ( $s eq 'The black cat jumped from the green tree' ) {
print "ok - 2 $^X $__FILE__\n" ;
}
else {
print "not ok - 2 $^X $__FILE__\n" ;
}
|