At 11.54 -0800 1999.11.27, Rob Sirota wrote: >I am looking for an easy way to tell if a directory is empty. This >needs to take into consideration if on a Mac there is only the icon >file and on windows if the . and .. exist. Use opendir/readdir. Test the OS using $^O, and if it is MacOS, check for any file not named "Icon\r". For Windows or Unix, check for any file not named "." or "..". -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org