Help for this page
sub truncate_utf8 { my ($utf8, $len) = @_; $len += 0; # Make sure $len is a number. return $utf8 =~ s/^.{0,$len)\K(?![\x80-\xBF]).*//sr; }
use warnings; use strict; ... ok 14 ok 15 # Looks like you failed 10 tests of 15.
sub truncate_utf8 { my ($utf8, $len) = @_; ... $next = chop($utf8) while (ord($next) & 0xC0) == 0x80; return $utf8; }
A photo of people (family, friends, myself, ...) A photo of my pet(s) A photo of something man-made (cars, machines, etc.) A photo of nature, space, or something else not man-made An abstract pattern Artwork, digital or photographed A solid color A digital animation Whatever my desktop environment has set for me by default I haven't seen my background in weeks, too many windows covering it!
Results (28 votes). Check out past polls.