String interpolation (included): Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: use pygments) |
(PascalABC.NET) |
||
Line 1,663: | Line 1,663: | ||
<syntaxhighlight lang="parigp">s=Strprintf("The value was: %Ps", 1<<20); |
<syntaxhighlight lang="parigp">s=Strprintf("The value was: %Ps", 1<<20); |
||
printf("The value was: %Ps", 1<<20);</syntaxhighlight> |
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}}== |
=={{header|Perl}}== |