Scott wrote: > > Morning: > > I need to scan a directory for files, they will be in pairs, a .tag file > and a .txt file. I need to first make sure the .tag file(s) is there. If > it is I need to check for the same prefix .txt file. Here is what I do to > check for the file: > > ($scantag) = <*.tag>; > > @files = glob("*.tag"); > > Is there a way to determine the prefix to the file? xxxxx.tag and > xxxxx.txt? > If you know, that only .tag and .txt files are in the directory, the simplest would be: @files = glob("xxxxx.*");
Greetings, Andrea -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]