String interpolation (included): Difference between revisions
Content deleted Content added
m →{{header|Phix}}: use pygments |
PascalABC.NET |
||
Line 1,663:
<syntaxhighlight lang="parigp">s=Strprintf("The value was: %Ps", 1<<20);
printf("The value was: %Ps", 1<<20);</syntaxhighlight>
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
var extra := 'little';
var formatted := $'Mary has a {extra} lamb.';
Print(formatted);
</syntaxhighlight>
=={{header|Perl}}==
|