Actually its a bit more complicated than that and perhaps I should have given more information. What I'm actually doing is trying to pass the generated regexp to archive::zip to create an archive according to a dos filemask which archive::zip doesn't seem to do. If I globbed the dir I'd then have to handle writing loads of individual members to my archive ....