use strict; use warnings; my $w = 7; my $str = "abc"; printf ">%*s<\n", $w, $str;