in reply to finding visible length of string?
my $unformatted_str = ' coloured! '; my $str = "\033[32m $uf_str \033[m"; $visible_length = length $unformatted_str; [download]