I get four times the same value, so it works for me. Also, it looks as if you want to pad shorter than 11-digit numbers with leading zeroes, this can be achieved by
$Val1 = sprintf("%011d", $Val1);
In reply to Re: issue with sprintf..
by hdb
in thread issue with sprintf..
by sathya83aa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |