\BQuestion:
I wrote a paragraph like
$var = 120
to assign \120
to \$var
, but when I used it like in
The variable was set to $var.
\$var
was not replaced by the value.
\BAnswer:
Just remove the spaces around the "=":
$var=120
\BDiscussion:
Because \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.
4 POD Errors
The following errors were encountered while parsing the POD:
- Around line 2:
Unknown directive: =Variable
- Around line 4:
Deleting unknown formatting code U<>
- Around line 17:
Deleting unknown formatting code U<>
- Around line 24:
Deleting unknown formatting code U<>