in reply to file globbing heck

Escape your spaces with a backslash (s/\s/\\ /g should do it).
$dir = 'c:/some/directory\ with\ spaces'; @xlfiles = glob("$dir/*.xls");