$a = 3;which results in the desired displayed text:

BEGIN_TEXT

Note that 2 times $a is \{ 2*$a \}.

This is always true.

END_TEXT

Note that 2 times 3 is 6.with something like this:

This is always true.

$a = 3;but this results in the (undesired) displayed text:

$string = <<EOT;

Note that 2 times $a is \{ 2*$a \}.

This is always true.

EOT

BEGIN_TEXT

$string

END_TEXT

Note that 2 times 3 is \{ 2*3 \}.(This is a simple example to illustrate what I'd like to do. In fact, inside \{...\} could include htmlLink, or various other perl statements).

This is always true.

How do I create $string so that what's inside \{...\} gets executed properly when $string is then placed inside of BEGIN_TEXT ... END_TEXT ?

Thanks in advance...