in reply to formated text

why not using printf?
try:
printf DEV "%10s %60s", $key, $value;