I've found another small problem with File::Find. If you are on a unix
based platform, and you use File::Find on a non-unix partition
eg dos, vfat (win9x), is9660 (cdrom) and AFS then File::Find doesn't work
properly. You need to add
$File::Find::dont_use_nlink=1
Into your program and it will work fine. As I understand it this lowers the
efficiency of File::Find because it has to look into each
directory to see if there are entries in it rather than just
looking at the nlink field in the inode. Non unix filesystems (and AFS ;-)
don't set this properly.
This note is based on my experience with File::Find under Linux.
It is probably similar under other *nix based systems but
since foreign partition mounting is an OS specific thing YMMV.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|