printf "%20s: \n", $_ for 'this', 'that', 'and this other bit'; this: that: and this other bit: printf "%-20s: \n", $_ for 'this', 'that', 'and this other bit'; this : that : and this other bit :