----- Original Message -----
From: "Geoff Ellis" <[EMAIL PROTECTED]>
To: "Unix (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 9:59 AM
Subject: [Perl-unix-users] silly question...


> 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
Try:
sprintf("%10s", $var)

ego

Edward G. Orton, GWN Consultants Inc.
Phone: 613-764-3186, Fax: 613-764-1721
email: [EMAIL PROTECTED]

_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to