1. Shlomi Fish
  2. perl-begin

Commits

Shlomi Fish  committed 007220c

Add File-Find-Rule.

  • Participants
  • Parent commits 7598076
  • Branches default

Comments (0)

Files changed (1)

File src/uses/sys-admin/index.html.wml

View file
  • Ignore whitespace
 </li>
 
 <li>
-<a href="http://search.cpan.org/~dland/File-Path-2.07/">File-Path</a> - a
-core module to create or remove directory trees (portably).
+<cpan_self_mod m="File::Path" /> - a core module to create or remove directory 
+trees (portably).
 </li>
 
 <li>
 </li>
 
 </ul>
+
+<h3 id="directory_traversal">Directory Traversal</h3>
+
+<p>
+The built-in module for traversing a directory tree in Perl is 
+<cpan_self_mod="File::Find" />, but it has some severe limitations in interface
+and use. Some better alternatives are:
+</p>
+
+<ul>
+
+<li>
+<p>
+<a href="http://www.shlomifish.org/open-source/projects/File-Find-Object/">File-Find-Object</a> - an object-oriented replacement for File::Find that:
+1) can be instantiated 2) has an iterative interface 3) can be interrupted in
+the middle and 4) can return result objects instead of path names.
+</p>
+</li>
+
+<li>
+<p>
+<cpan_self_dist="File-Next" /> - an alternative with an iterative interface,
+but incapable of being instantiated.
+</p>
+</li>
+
+<li>
+<p>
+<cpan_self_dist="File-Find-Rule" />, which is still based on File::Find, and
+<cpan_self_dist="File-Find-Object-Rule" /> provide a more convenient and 
+succinct interface for finding what you want.
+</p>
+</li>
+
+</ul>