Dear spiritual brothers and sisters,
having found something, that transcend my understanding, and in the search for truth, I would like to share it with you. Having exactly this line in my here document, all $context_desc variables are interpolated correctly, except of the last one, which is interpolated as $context - I have such variable too.
action=setwpos %u +1 ($desc) ; shift ($context_desc) @{[COUNTER_START_VAR]} ; shift ($context_desc) @{[COUNTER_STATE_VAR]} ; eval @{[COUNTER_STATE_VAR]} ( \$counter=@{[COUNTER_STATE_VAR]}; ++\$counter; ) ; add ($context_desc) @{[COUNTER_START_VAR]} ; add ($context_desc) @{[COUNTER_STATE_VAR]} ; assign @{[COUNTER_STATE_VAR]} 0 ; set ($context_desc) $restartTried also ${context_desc}, but with the same result. I was suspitious, if this line is not too long for here document (not knowing, if there are some limitations), but this is not the longest line in here document, and I haven't found other failed interpolations. Tried also complete replacement of all characters in variable name (if hidding some invisible special character), but repeatedly the same result.
Any tips?
Using perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi in WSL.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |