<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001093" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001093</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/stuck-and-its-been-awhile-i-touched-it#comment-1004749</link>
    <description> &lt;p&gt;I think that you are right -- at least that&#039;s what the Perl Cookbook asks when it tries to tell me how to do with without a hash.&lt;/p&gt;
&lt;p&gt;*sigh*&lt;/p&gt;
&lt;p&gt;I would be doing it that way, but I&#039;m not up to that lesson yet.   &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;  Guess it&#039;s back to the books for a moment.&lt;/p&gt;
&lt;p&gt;Thanks very much for taking the time to drill commonsense into my head!&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; Suzanne&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.zerocattle.com&quot; class=&quot;bb-url&quot;&gt;Zero Cattle&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/&quot; class=&quot;bb-url&quot;&gt;Suzanne&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/index/celtic.html&quot; class=&quot;bb-url&quot;&gt;Tables DeMystified&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 May 2000 00:04:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1004749 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/stuck-and-its-been-awhile-i-touched-it#comment-1004748</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;why don&#039;t you use a hash ?&lt;br /&gt;
If you setup like this:&lt;br /&gt;
$array{ &quot;wathever&quot; } = &quot;http://wherever/here.html&quot;;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;/p&gt;
&lt;p&gt;Then you can just use:&lt;br /&gt;
print &quot;Location: &quot;.( $array{ $ENV{QUERY_STRING} } ).&quot; \n\n&quot;;&lt;/p&gt;
&lt;p&gt;I&#039;m not sure that this is what you want, but it works for me.&lt;/p&gt;
&lt;p&gt;ciao&lt;br /&gt;
Anti&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 May 2000 23:52:00 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1004748 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/stuck-and-its-been-awhile-i-touched-it#comment-1004747</link>
    <description> &lt;p&gt;Yes, that does help, thanks!&lt;/p&gt;
&lt;p&gt;$lookfor in this case would be $ENV{QUERY_STRING}?&lt;/p&gt;
&lt;p&gt;What I need to do is where you have print... in the if statement, is have a new variable set there.&lt;/p&gt;
&lt;p&gt;So if the name is found (which it will be if they just click on the link, because the name is generated), then the item&#039;s location will be returned?&lt;/p&gt;
&lt;p&gt;$lookfor = $array[$number][0]&lt;/p&gt;
&lt;p&gt;I think I am coming at this the wrong way.&lt;/p&gt;
&lt;p&gt;Hmmm.&lt;/p&gt;
&lt;p&gt;Thanks for the response, I am going to go off and mutter to myself for awhile.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 May 2000 22:04:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1004747 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/stuck-and-its-been-awhile-i-touched-it#comment-1004746</link>
    <description> &lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
@array = (&quot;whatever|something|someimg.gif|&quot;,&quot;whatever|something|someimg2.gif|&quot;);
$lookfor = &quot;someimg.gif&quot;;

foreach $line (@array)
{
	if($line =~ m/$lookfor/)
	{
		print &quot;Found\n&quot;;
	}
	else
	{
		print &quot;Not Found\n&quot;;
	}		
}
[/code]

I am not sure if that is exactly what you wanted, but it will look for the $lookfor in each element in an array.  With the first element in the array, it outputed &quot;Found&quot;, and for the next one, it outputed &quot;Not Found&quot;.

Does that help at all?

------------------
&lt;a href=&quot;http://www.thehungersite.com&quot; class=&quot;bb-url&quot;&gt;click here to help save lives&lt;/a&gt;
&lt;a href=&quot;http://www.wiredstart.com&quot; class=&quot;bb-url&quot;&gt;http://www.wiredstart.com&lt;/a&gt;  : The Technology Start Page

[This message has been edited by robp (edited 13 May 2000).] &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Sat, 13 May 2000 21:43:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004746 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
