<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013601" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013601</link>
    <description></description>
    <language>en</language>
          <item>
    <title>File Globs</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/how-do-i-0#comment-1078765</link>
    <description> &lt;p&gt;Since you&#039;re using Perl, you could use a very-Perl approach:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;opendir DIR, $path or die &amp;quot;can&amp;#039;t read $path: $!&amp;quot;;&lt;br /&gt;@text = map &amp;quot;$path/$_&amp;quot;, grep /\.txt$/, readdir DIR;&lt;br /&gt;closedir DIR;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Or you could take the let-the-OS-do-it approach:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;@text = glob &amp;quot;$path/*.txt&amp;quot;;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Mar 2001 00:32:54 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1078765 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
