Why use the external command printf when you can use the sprintf builtin?
while ($i < 4) { $ID1=sprintf "%024x", $i; printf "Value of ID1 = $ID1\n"; $ID1 = join ' ', unpack("(A2)*",$ID1); print "After join command:$ID1\n"; $i++; }
In reply to Re: perl Question
by FunkyMonk
in thread perl Question
by perlb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |