$line = "C:\Winnt\system32\a.exe C:\Winnt\system32\b.exe D:\Files\blah.exe"; @files = split(#[C-Z]:\#, $line);