Hey Philipp, this is was i need! :) --- Philipp Traeder <[EMAIL PROTECTED]> wrote: > On Friday 02 July 2004 15:55, Rod Za wrote: > Hi Rod, > > take a look at the sprintf function ("perldoc -f sprintf") - something like: > > #!/usr/bin/perl -w > use strict; > my $shortnumber = '10'; > my $longnumber = '1000'; > print sprintf("shortnumber : %06d\n", $shortnumber); > might do the trick. > > BTW: It's easier to help if you specify what you want to do - in this case it > didn't matter much, but it can take some time to understand what a piece of > code should be doing... ;-)
Sorry, i'm not too much clear. What i'm needed is to fill a var (with fix length) with zeros and the sprintf works perfectly. Thank you very much __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>