<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015367" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015367</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/quick-perl-question-experts#comment-1088815</link>
    <description> &lt;p&gt;Welcome to TWF, Jm4n!&lt;/p&gt;
&lt;p&gt;Very usefull information, thanks!&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Sep 2001 15:42:05 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088815 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/quick-perl-question-experts#comment-1088763</link>
    <description> &lt;p&gt;well, i didn&#039;t know all that stuff. thank you for the information (not as useless as you&#039;re saying... &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; )&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Sep 2001 10:41:03 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1088763 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/quick-perl-question-experts#comment-1088760</link>
    <description> &lt;p&gt;Well, apparently you figured it out, but to explain what I know about it:&lt;/p&gt;
&lt;p&gt;Any shell script on a Unix system starts with a &#039;bang line&#039;, or &#039;shebang line&#039;. This line is always a # sign, an ! mark, and the path to the interpretor.&lt;/p&gt;
&lt;p&gt;#!/usr/bin/perl&lt;/p&gt;
&lt;p&gt;The reason it starts with a # sign is that you can run this script through the interpretor directly -- in which case that line is simply ignored.&lt;/p&gt;
&lt;p&gt;Perl never sees that line when a Perl script is executed directly. The operating system sees it, and decides it&#039;s a text-based script. It then finds the interpretor, and executes it, giving the script filename as an argument:&lt;/p&gt;
&lt;p&gt;/usr/bin/perl scriptname.pl&lt;/p&gt;
&lt;p&gt;The short answer is that Perl (or sh or other shell scripting language) will ignore the line, as it should. Only the system (or the web server) needs to interpret the line.&lt;/p&gt;
&lt;p&gt;---&lt;br /&gt;
Little known facts:&lt;/p&gt;
&lt;p&gt;- Most people don&#039;t know this, but it does not have to be the first line. You can have blank lines and comments before it, just no code.&lt;/p&gt;
&lt;p&gt;- In most cases with Perl scripts, if you put a single hyphen as the last argument, you can forget about having to upload in ASCII mode:&lt;/p&gt;
&lt;p&gt;#!/usr/bin/perl --&lt;/p&gt;
&lt;p&gt;See, it&#039;s not Perl that cares about line terminations, Perl is cross-platform. It&#039;s the operating system that causes the problem; It sees the CR (carriage return) as being part of the command line, which when passed to perl is an invalid argument.&lt;/p&gt;
&lt;p&gt;The last hyphen tells Perl to ignore the rest of the command line (over-simplified explanation); thus, when it sees the CR that Windows or MAC uses to terminate lines, it will simply ignore it instead of giving an error. If all scripts shipped like this, the most common script problem would simply go away &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;&lt;/p&gt;
&lt;p&gt;But enough useless information...&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Sep 2001 10:18:58 +0000</pubDate>
 <dc:creator>Jm4n</dc:creator>
 <guid isPermaLink="false">comment 1088760 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/quick-perl-question-experts#comment-1088689</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.imsa.edu/~jhayward/other/perl_guide/text/chapter_0/unix/shebang.html&quot; class=&quot;bb-url&quot;&gt;Nevermind&lt;/a&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>Mon, 03 Sep 2001 20:17:27 +0000</pubDate>
 <dc:creator>tmay</dc:creator>
 <guid isPermaLink="false">comment 1088689 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
