# Source Location, Filename, An ID that I need for file processing @array('C:\Source1\', 'File1.txt', 'ReferenceIDForProcessing' 'D:\Source2\sub\', 'File2.txt', 'ReferenceIDForProcessing' 'E:\Source3\sub2\', 'File3.xml', 'ReferenceIDForProcessing' 'C:\Source4\', 'File4.pgp', 'ReferenceIDForProcessing'); # Assuming the syntax is even close, how do I then irrerate over that array to process each line or grouping? # I'm hoping to do a loop something like this $centralLocation = "Z:\Processing\"; open(FILES, "<@array") or die $!) ; while () { $line = $_ ; chomp($line) ; @FILE = split(/,/, $line) ; # Split each line into the 3 different parts. (Example in first line of the array) Move (@FILE[0]@FILE[1],$centralLocation); # Now all files would be in a central location for processing (ie: Move C:\Source1\File1.txt to Z:\Processing) Process ($centralLocation@FILE[1], @FILE[2]); # How the sending works is irrevlant, only that I can put the @info[2] there for each file to process. } close(FILES);