in reply to Quick Syntax check

A simpler way to do what you want to do is the following:

$temp_dcr{$dcr_name}}PromotionName} =~ s/\s+//g;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Peter L. Berghold --- Peter@Berghold.Net
"Those who fail to learn from history are condemned to repeat it."