You could put parens around the args for sprintf (I do, just about every time I use it, and just out of habit from my C coding days), but they are optional.$x = sprintf "Expected value is %d", $y + 2;
In reply to Re: declare string with addition of two variables
by graff
in thread declare string with addition of two variables
by phemal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |