this helps? TK im /u2/dbs> perl -e 'printf "%-10sblabla","001023";' 001023 blabla
same with sprintf with regard to the format till > could someone tell me how to pad right to left with spaces in a srintf > function.. > ie. how to convert "001023" into "001023ssss" where s is a space.. > > tia Geoff > > > _______________________________________________ > Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users > _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users