# single value passed in = 463.3742.23 sub getFoo{ my $strFoo = @_; $strFoo .= "_testme"; $strFoo .= ".xml"; return $strFoo; } Result: $strFoo=463.3742.23_testme.xml *or* $strFoo=1_testme.xml