in reply to Wildcards and Files

use glob
@files = glob("*.txt");