$inputPathPrefix = "C:/Temp/xml"; @inputfiles = ( $inputPathPrefix . "/test1.xml", $inputPathPrefix . "/test2.xml", $inputPathPrefix . "/test3.xml" ); #### @inputfiles = ( @inputfiles, $inputPathPrefix . "/test4.xml", $inputPathPrefix . "/test5.xml", $inputPathPrefix . "/test6.xml", $inputPathPrefix . "/test7.xml" ) #### push(@inputfiles, $inputPathPrefix . "/test4.xml"); push(@inputfiles, $inputPathPrefix . "/test5.xml"); push(@inputfiles, $inputPathPrefix . "/test6.xml"); push(@inputfiles, $inputPathPrefix . "/test7.xml");