in reply to fixed length string

my $fixed = sprintf "%-5.5s", $string;
--
edan