<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012639" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012639</link>
    <description></description>
    <language>en</language>
          <item>
    <title>did you try it / read the docs</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073123</link>
    <description> &lt;p&gt;No, trust me.  &lt;strong&gt;require&lt;/strong&gt; does not take a list of files.  &lt;strong&gt;perldoc -f require&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 21 Oct 2000 11:22:45 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1073123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073119</link>
    <description> &lt;p&gt;How &#039;bout this:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;require &quot;text1.txt&quot;,&quot;text2.txt&quot;;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;like:&lt;br /&gt;
print &quot;this&quot;,&quot;and&quot;,&quot;this&quot;;&lt;/p&gt;
 </description>
     <pubDate>Sat, 21 Oct 2000 04:35:29 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1073119 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>did you try it?</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073117</link>
    <description> &lt;p&gt;No, Suzanne, I&#039;m afraid you can&#039;t.  &lt;strong&gt;require()&lt;/strong&gt; takes at most one argument, and that argument MUST be the name of a module, or the path to a single file to be included.  To include several files at once, make an array of them, and require each element of the array separately:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;# pre-5.005 code&lt;br /&gt;for (@files) { require }&lt;br /&gt; &lt;br /&gt;# 5.005 and later&lt;br /&gt;require for @files;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sat, 21 Oct 2000 04:03:46 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1073117 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>It&#039;s just require &quot;&quot;;</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073116</link>
    <description> &lt;p&gt;require &quot;file.txt&quot;;&lt;br /&gt;
require &quot;file2.txt&quot;;&lt;br /&gt;
require &quot;files.txt&quot;;&lt;/p&gt;
&lt;p&gt;Most scripts and programmers recommend you have it near the top of the script/program, before the variables, for ease.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
&lt;p&gt;P.S.  This was edited to correct my brain fart, thank you!&lt;/p&gt;
&lt;p&gt;[Edited by Suzanne on 10-21-2000 at 03:23 AM]&lt;/p&gt;
 </description>
     <pubDate>Sat, 21 Oct 2000 04:00:04 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1073116 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073114</link>
    <description> &lt;p&gt;yeah, require will probably do it for u.&lt;/p&gt;
 </description>
     <pubDate>Sat, 21 Oct 2000 02:26:52 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1073114 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/cgi-include#comment-1073097</link>
    <description> &lt;p&gt;You probably want the &lt;strong&gt;require()&lt;/strong&gt; function, or perhaps the &lt;strong&gt;do()&lt;/strong&gt; function.  Be warned, files included into your program should end with the line&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;1;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;because Perl expects them to return a true value (that indicates success).&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Oct 2000 15:51:13 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1073097 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
