in reply to compare string problem

Its obvious, its because they are not equal :) Try
use Data::Dumper; print Dumper( [ $cmp, $clt ] );
to learn how they're different