The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

=Variable assignments do not work

\QST

I wrote a paragraph like

  $var = 120

to assign \C<120> to \C<$var>, but when I used it like in

  The variable was set to $var.

\C<$var> was not replaced by the value.


\ANS

Just remove the spaces around the "=":

  $var=120


\DSC

Because \B<PerlPoint::Parser> has to recognize PerlPoint controls amidst natural language it cannot handle whitespaces as
programming language parsers do - whitespaces are real tokens. Not accepting them in an assignment simplifies the parsers
paragraph type detection.