This works for me:
$ perl -e 'sub double { return 2 * shift;} ; my $c = sprintf "%s\n%s\n +", "foo", double(3); print $c;' foo 6
In reply to Re: sprintf: using nested code
by Laurent_R
in thread sprintf: using nested code
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |