Your s/ /0/ substitution is - politely said - less optimal. ;-)
DB<117> $val=12143 => 12143 DB<118> sprintf("%011.0f", $val); => "00000012143" DB<119> $val=12143951645 => "12143951645" DB<120> sprintf("%011.0f", $val); => "12143951645"
please read the documentation for more details. =)
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^3: issue with sprintf..
by LanX
in thread issue with sprintf..
by sathya83aa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |