<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015741" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015741</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-perl-my-first-assignment#comment-1091361</link>
    <description> &lt;p&gt;Thanks for the help. I ended up dumping all the functions my professor gave me (wasted a weekend). And with the help of a friend, came up with the following. I also neglected to add that I was looking to search the document with whatever the user input, not just &#039;web.&#039; So I had to grab the user&#039;s input and drop it into a string like: $string = ; Anyway below was all I needed. Don&#039;t know why my professor made it so hard.&lt;/p&gt;
&lt;p&gt;my $userinput = ;&lt;br /&gt;
chomp $userinput;&lt;/p&gt;
&lt;p&gt;my @array = split(/$userinput/, $info);&lt;br /&gt;
print &quot;\n$#array occurences of \&quot;$userinput\&quot;&quot;;&lt;/p&gt;
&lt;p&gt;This programming stuff boggles my mind. Mad respect to you people.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Oct 2001 23:29:02 +0000</pubDate>
 <dc:creator>dcdomain</dc:creator>
 <guid isPermaLink="false">comment 1091361 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-perl-my-first-assignment#comment-1091343</link>
    <description> &lt;p&gt;looking at your functions list...&lt;br /&gt;
here&#039;s something I came up with (not tested)&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;# $page_text&lt;br /&gt;$search_string = &amp;quot;web&amp;quot;;&lt;br /&gt;&lt;br /&gt;while (index($page_text, $search_string) &amp;gt; -1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # find the position of the last character of $search_string&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $start = index($page_text, $search_string) + length($search_string);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # how many character from that point to the end of $page_text&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $end = length($page_text) - $start;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # cut the $search_string and everything before it out of $page_text&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $page_text=substr($page_text,$start,$end);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
I think that&#039;s a rather difficult first perl script.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Oct 2001 15:58:32 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1091343 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-perl-my-first-assignment#comment-1091316</link>
    <description> &lt;p&gt;Don&#039;t get to discouraged, it can take a while for your brain to adapt to logical programming! You&#039;ll know when it happens because after that you tend to act like a Vulcan and say stuff like:&lt;/p&gt;
&lt;p&gt;&quot;That is not logical&quot;&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;&quot;After further analysis that does not compute&quot;&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Oct 2001 12:51:37 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1091316 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
