Jump to content

Rexx Programming/How to Rexx/interpolation

From Wikibooks, open books for an open world

The rexx scripting language does not automatically carry out interpolation by default. However, interpolation is easily achieved by using the changestr function:

mystring = changestr("X", "Mary had a X lamb.", "little")
say mystring