blib/lib/Perlmazing/Perlmazing/to_utf8.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 2 SCAR 13.9
CC
2
Cov
0%
main
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 use Perlmazing qw(is_utf8);
2 use Encode;
3 our @ISA = qw(Perlmazing::Listable);
4  
5 sub main {
6 $_[0] = Encode::encode('utf8', $_[0]) if defined $_[0] and not is_utf8 $_[0];
7 }
8  
9 1;