etcshadow has asked for the wisdom of the Perl Monks concerning the following question:
About the best that I have come up with so far is a snippet from the latest version of File::Find off of CPAN which is basically like:
Anyone know anything better/safer, or at least more canonical?$File::Find::skip_pattern = qr/^\.{1,2}\z/; if ($^O eq 'MacOS') { $File::Find::skip_pattern = qr/^Icon\015\z/; }
------------ :Wq Not an editor command: Wq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Portable method for ignoring psuedo-files/psuedo-dirs?
by chromatic (Archbishop) on Mar 06, 2004 at 05:53 UTC | |
by Prior Nacre V (Hermit) on Mar 06, 2004 at 15:55 UTC | |
by etcshadow (Priest) on Mar 07, 2004 at 04:17 UTC |