Help for this page
use strict; my ($len, $str) = (5, "someword"); $str = sprintf "%-${len}.${len}s", $str; print ">>$str<<\n";