At 13:29 Uhr -0500 12.07.2003, Jeff Lowrey wrote:
At 6:35 PM +0200 7/12/03, Martin Buchmann wrote:
Hi all,

i think i just need an idea or a function's name, respectively. I want the user to select a folder with the StandardGetFolder Dialog, that's easy and working but than i want my script to get all files in that folder which have a specific name, say /^result\d{3}/.

I'm sure this is easy done but i don't know how 8-) Is there a function which returns a list of specific files in a given directory? I checked the MacPerl book and the file related pods quickly but found nothing.

Any ideas will be apreciated.

Everyone else has suggested using readdir and opendir and all that jazz.


I say, why bother? Use File::Find and be done.

-jeff


Yep, but in this particular case, I still would prefer readdir, because it is fast. File::Find is sloooow compared to that. File::Find is better suited if you are going to search a whole directory tree, imho.

Regards, Thomas

Reply via email to