in reply to perl glob

It's not clear to me from what you have said why you don't just let the shell handle the expansion.