sub getFoo{ my ($x,$y) = @_; $x . '_' . $y . '_testme.xml'; } #### sub getFoo{ sprintf '%s_%s_testme.xml', @_; }