<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015964" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015964</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-require-command-perl#comment-1092748</link>
    <description> &lt;p&gt;In order to require a page that has a path constructed with a variable, do you need to eval it?  Or should it work without the eval?&lt;/p&gt;
 </description>
     <pubDate>Mon, 29 Oct 2001 06:18:49 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1092748 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-require-command-perl#comment-1092735</link>
    <description> &lt;p&gt;Also, you do know that whatever you require has to have some prewritten Perl code in it, right?  The require command actually imports a program, not a regular text file.&lt;/p&gt;
 </description>
     <pubDate>Sun, 28 Oct 2001 22:17:18 +0000</pubDate>
 <dc:creator>tmay</dc:creator>
 <guid isPermaLink="false">comment 1092735 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-require-command-perl#comment-1092730</link>
    <description> &lt;p&gt;Try to do this:&lt;/p&gt;
&lt;p&gt;eval(&quot;require \&quot;/absolute/path/to/files/$FORM{&#039;id&#039;}/options.txt\&quot;;&quot;);&lt;/p&gt;
&lt;p&gt;But don&#039;t forget to check ID! Eval is very insecure, if you use it bad...&lt;br /&gt;
For example, if $FORM{&#039;id&#039;} is a number, this code is much more secure:&lt;/p&gt;
&lt;p&gt;$id=$FORM{&#039;id&#039;}+0;&lt;br /&gt;
eval(&quot;require \&quot;/absolute/path/to/files/$id/options.txt\&quot;;&quot;);&lt;/p&gt;
&lt;p&gt;If I&#039;m totally wrong here, explain exactly what you are trying to do and what options.txt is and why you are calling it.&lt;/p&gt;
 </description>
     <pubDate>Sun, 28 Oct 2001 21:21:20 +0000</pubDate>
 <dc:creator>tmay</dc:creator>
 <guid isPermaLink="false">comment 1092730 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-require-command-perl#comment-1092595</link>
    <description> &lt;p&gt;Have you tried echoing the string to check the path?&lt;br /&gt;
I don&#039;t think I&#039;ve ever tried that with Perl, but it works in PHP.&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 Oct 2001 07:14:22 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1092595 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
