in reply to Google has failed me! Using pack and substr for fixed width file output
$ perl -Mdiagnostics -e " $foo = sprintf q{%-24s}, 123; substr $foo, 2 +0, 4 , 4444; print $foo; " 123 4444 [download]