I want to initialize a hash using a value declared immediately before the current one.
For example (below), I declared title and initialized it to 'The Root Cause'. Then I want to use the value of title in the declaration of headline.
[tt][blue]%article=(
title => 'The Root Cause',
headline => "$article{title}",
);
[/blue][/tt]
This doesn't produce a syntax error, but $article{headline} is empty.
Is there a way to do this?
For example (below), I declared title and initialized it to 'The Root Cause'. Then I want to use the value of title in the declaration of headline.
[tt][blue]%article=(
title => 'The Root Cause',
headline => "$article{title}",
);
[/blue][/tt]
This doesn't produce a syntax error, but $article{headline} is empty.
Is there a way to do this?