<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1036712" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1036712</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/metacharacter-function#comment-1211187</link>
    <description> &lt;p&gt;Ok, that makes sense. Knowing that, I used it in my script. I made a new function called cutit and...well, I don&#039;t want to explain it. &lt;a href=&quot;http://cs.clark.edu/~mjohn0882/rolldex&quot; class=&quot;bb-url&quot;&gt;Have a look yourself&lt;/a&gt; . That is my final script (maybe &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;). I think I got everything working the way it&#039;s supposed to.&lt;/p&gt;
&lt;p&gt;Thanks again for the help, we never covered functions in the class (not in the book either).&lt;/p&gt;
&lt;p&gt;EDIT: Changed it again, combined grep and cut together in a function. Man, I love scripting.&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Nov 2006 22:43:36 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1211187 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/metacharacter-function#comment-1211125</link>
    <description> &lt;p&gt;There&#039;s a somewhat silly reason why you can&#039;t do that, and a good reason why you shouldn&#039;t.&lt;/p&gt;
&lt;p&gt;[incode]$1[/incode] basically means &lt;em&gt;the first argument&lt;/em&gt;.  At the top level it&#039;s, &lt;em&gt;the first argument to the script&lt;/em&gt;; but inside a function it&#039;s &lt;em&gt;the first argument to the function&lt;/em&gt;.  To read the script&#039;s first argument from a function, either copy the script&#039;s first argument to another variable -- which you have -- or pass it as an argument to your function.&lt;/p&gt;
&lt;p&gt;I would use another variable (like [incode]lastname[/incode]), as it&#039;s better style and more maintainable.  The program logic is separated from the its interface.  It&#039;s also more readable.&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;&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Nov 2006 09:44:19 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1211125 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
