use strict; my $$result = 'test-'; my $text = 'text'; $$result .= $text; print "Result: $$result";