Re: Fill a string with zeros.

2004-07-02 Thread Rod Za
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 $longnum

Re: Fill a string with zeros.

2004-07-02 Thread Philipp Traeder
On Friday 02 July 2004 15:55, Rod Za wrote: > Hi all, > > Someone knows an way to do this more easy? > > _BEGIN_ > #!/usr/bin/perl > use warnings; > use strict; > my $job = 15; > my $job_name = 'd0'; > print "JOBNAME $job_name LENGTH: ".length($job_name)."\n"; > print "JOB...: $job LENGTH:

Fill a string with zeros.

2004-07-02 Thread Rod Za
Hi all, Someone knows an way to do this more easy? _BEGIN_ #!/usr/bin/perl use warnings; use strict; my $job = 15; my $job_name = 'd0'; print "JOBNAME $job_name LENGTH: ".length($job_name)."\n"; print "JOB...: $job LENGTH: ".length($job)."\n"; print substr($job_name,-length($job_name),-l