Hi all - I'd like to thank everyone for your help with my Perl and AppleScript
project. I have decided to write the entire script in Perl. I am having a
problem with readdir returning a list of all files. The invisible files (I'm
assuming) are giving me an error. How do I not use the invisible files?

Here is my code to get the file list:

my @dirFiles = readdir(PARSE);
closedir(PARSE);

foreach my $fileName(@dirFiles) {
        processFile($fileName);
}

What does if (-f $file) mean? I see this in the "Mac Perl Power and Ease" book.

If I use the above, I get this error:

# Unsuccessful stat on filename containing newline.

Thanks,
Kathy

Reply via email to