<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: [Perl] Finding Files, The Fun And Elegant Way</title> <atom:link href="http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Sat, 11 Feb 2012 17:00:25 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Shlomi Fish</title><link>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/#comment-20301</link> <dc:creator>Shlomi Fish</dc:creator> <pubDate>Sat, 04 Jul 2009 13:59:12 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/#comment-20301</guid> <description>I should note that I recently began work on &lt;a href=&quot;http://www.shlomifish.org/open-source/projects/File-Find-Object/&quot; rel=&quot;nofollow&quot;&gt;File-Find-Object-Rule&lt;/a&gt;, which is a port of File-Find-Rule to File-Find-Object. This would eventually allow F-F-O-R to overcome some of File::Find::Rule inherent limitations, which are caused due to its reliance on File::Find.
The interface of F-F-Object-Rule still remains pretty much backwards compatible to that of F-F-Rule, but some stuff (like &quot;-&gt;start()&quot; and &quot;-&gt;match()&quot;) have become much saner.</description> <content:encoded><![CDATA[<p>I should note that I recently began work on <a
href="http://www.shlomifish.org/open-source/projects/File-Find-Object/" rel="nofollow">File-Find-Object-Rule</a>, which is a port of File-Find-Rule to File-Find-Object. This would eventually allow F-F-O-R to overcome some of File::Find::Rule inherent limitations, which are caused due to its reliance on File::Find.</p><p>The interface of F-F-Object-Rule still remains pretty much backwards compatible to that of F-F-Rule, but some stuff (like &#034;-&gt;start()&#034; and &#034;-&gt;match()&#034;) have become much saner.</p> ]]></content:encoded> </item> <item><title>By: Andy Lester</title><link>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/#comment-15398</link> <dc:creator>Andy Lester</dc:creator> <pubDate>Wed, 08 Apr 2009 15:17:02 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/#comment-15398</guid> <description>Glad you dig the File::Find::Rule, but I&#039;ve always found it to be a pain to use.  Rather than having to use plugin filters, I&#039;d rather just write my own if necessary.  So I wrote File::Next.
use File::Next;
my $iter =
File::Next::files( {
file_filter =&gt; sub { /\.pl$/ },
descend_filter =&gt; sub { $_ ne &#039;.svn&#039; },
}, &#039;.&#039;, &#039;../SomeDir&#039; );
while ( my $file = $iter-&gt;() ) {
print &quot;$file\n&quot;;
}
Like your previous example, that finds all .pl files under . and ../SomeDir, without looking into the .svn directories.</description> <content:encoded><![CDATA[<p>Glad you dig the File::Find::Rule, but I&#039;ve always found it to be a pain to use.  Rather than having to use plugin filters, I&#039;d rather just write my own if necessary.  So I wrote File::Next.</p><p>use File::Next;</p><p>my $iter =<br
/> File::Next::files( {<br
/> file_filter =&gt; sub { /\.pl$/ },<br
/> descend_filter =&gt; sub { $_ ne &#039;.svn&#039; },<br
/> }, &#039;.&#039;, &#039;../SomeDir&#039; );</p><p>while ( my $file = $iter-&gt;() ) {<br
/> print &#034;$file\n&#034;;<br
/> }</p><p>Like your previous example, that finds all .pl files under . and ../SomeDir, without looking into the .svn directories.</p> ]]></content:encoded> </item> </channel> </rss>
