my @sources = glob("c:\\temp\\*"); print join("\n", @sources) . "\n"; __OUTPUT__ c:\temp\afile.txt c:\temp\anotherfile.txt etc...