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
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:
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