<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011995" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011995</link>
    <description></description>
    <language>en</language>
          <item>
    <title>yessss</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-my-little-script#comment-1069186</link>
    <description> &lt;p&gt;yes, i got it...&lt;br /&gt;
i &#039;simply&#039; forgot the&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;use CGI;&lt;br /&gt;&lt;br /&gt;$query = new CGI;&lt;br /&gt;@parname = $query-&amp;gt;param;&lt;br /&gt;foreach $n (@parname) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; $list{$n} = $query-&amp;gt;param($n);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$action = $list{&amp;#039;action&amp;#039;};&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
part....&lt;br /&gt;
now it&#039;s working...&lt;/p&gt;
&lt;p&gt;thnx vulken&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 Aug 2000 14:38:36 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1069186 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-my-little-script#comment-1069153</link>
    <description> &lt;p&gt;Why not just copy and paste those subroutines into the show.pl file?&lt;/p&gt;
&lt;p&gt;Try that out and see if it works. In reality it should be importing the subroutines from the required file. Make sure that they are chmoded correctly. Put an error routine to evaluate whether it is finding read.pl. &lt;/p&gt;
&lt;p&gt;if that fails...include your subroutines in your if statements...ie.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if ($action eq &amp;quot;band&amp;quot;) {&lt;br /&gt;&amp;nbsp; sub band {&lt;br /&gt;&amp;nbsp; my $file = &amp;quot;band.txt&amp;quot;;&lt;br /&gt;&amp;nbsp; ### Open file ###&lt;br /&gt;&amp;nbsp; open (FILE, &amp;quot;$file&amp;quot;) || die &amp;quot;No such file: $file&amp;quot;;&lt;br /&gt;&amp;nbsp; while (&amp;lt;FILE&amp;amp;gt;) {&lt;br /&gt;	 $content = &amp;quot;$content$_&amp;quot;;&lt;br /&gt;}&lt;br /&gt;close (FILE);&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;1;&lt;br /&gt;} elsif ($action eq &amp;quot;thanks&amp;quot;) {&lt;br /&gt; #do the thanks subroutine&lt;br /&gt;} else {&lt;br /&gt; #so on and so forth&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Hope this helps.&lt;br /&gt;
Vulken&lt;br /&gt;
&lt;strong&gt;dookie&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Aug 2000 16:39:48 +0000</pubDate>
 <dc:creator>Ken Elliott</dc:creator>
 <guid isPermaLink="false">comment 1069153 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-my-little-script#comment-1069152</link>
    <description> &lt;p&gt;thanks vulken for your fast answer.&lt;br /&gt;
well, it sounds quite ok, but somehow it doesn&#039;t work... i suppose it doesn&#039;t find the subroutine...&lt;/p&gt;
&lt;p&gt;please have a look at:&lt;br /&gt;
&lt;a href=&quot;http://www.greenbreak.ch/htbin/show.pl&quot; class=&quot;bb-url&quot;&gt;http://www.greenbreak.ch/htbin/show.pl&lt;/a&gt;  that&#039;s the &#039;final&#039; site (at about)...&lt;br /&gt;
&lt;a href=&quot;http://www.greenbreak.ch/redesign/show.txt&quot; class=&quot;bb-url&quot;&gt;http://www.greenbreak.ch/redesign/show.txt&lt;/a&gt;  that&#039;s the show.pl-file (with your modifications)&lt;br /&gt;
&lt;a href=&quot;http://www.greenbreak.ch/redesign/read.txt&quot; class=&quot;bb-url&quot;&gt;http://www.greenbreak.ch/redesign/read.txt&lt;/a&gt;  that&#039;s the read.pl-file&lt;br /&gt;
&lt;a href=&quot;http://www.greenbreak.ch/redesign/temp.html&quot; class=&quot;bb-url&quot;&gt;http://www.greenbreak.ch/redesign/temp.html&lt;/a&gt; that&#039;s the html-template&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Aug 2000 15:21:09 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1069152 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-my-little-script#comment-1069150</link>
    <description> &lt;p&gt;Well I am supposing that all of the subroutines are contained within &quot;read.pl&quot;. So you only have to specify it&#039;s requirement once at the top of your script. Then you can use your if statement like this.&lt;/p&gt;
&lt;p&gt;if ($action eq &quot;band&quot;) {&lt;br /&gt;
&amp;band;&lt;br /&gt;
} elsif ($action eq &quot;suckyband&quot;) {&lt;br /&gt;
&amp;suckyband;&lt;br /&gt;
} else {&lt;br /&gt;
print &quot;Your band must really suck&quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The script knows that it needs to find the subroutine, and it knows that it is either contained within itself or within one of the required perl files.&lt;/p&gt;
&lt;p&gt;Then in your link just make it like this&lt;br /&gt;
href=&quot;read.pl?$action=band&quot;&lt;/p&gt;
&lt;p&gt;alternating the value of the action scalar.&lt;/p&gt;
&lt;p&gt;I think that should work.&lt;/p&gt;
&lt;p&gt;VulKen&lt;br /&gt;
&lt;strong&gt;I know it smells in here...because I&#039;m the ****&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Aug 2000 13:47:31 +0000</pubDate>
 <dc:creator>Ken Elliott</dc:creator>
 <guid isPermaLink="false">comment 1069150 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
