I want to create a string with an optional symbol that needs to appear right before an alphabetic character. As an example imagine trying to create the string '+voice' or '-voice'. If I create a string variable $plusminus, which contains the '+' or '-' symbol, and then try to interpolate like this:
Code: Select all
@S'$plusminusvoice'
Code: Select all
@S'$plusminus voice'